This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/ripped_params/project_params.yml | |
--- | |
:require: :project | |
:permit: | |
- :name | |
- :service_id | |
- :quote | |
- :document_attributes: | |
- :filepicker_url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProjectsController < ApplicationController | |
uses_ripped_params :project_params | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
Project.create(project_params) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def farked?(dice_array) | |
puts "farked" if has_3_of_kind?(dice_array) || has_1?(dice_array) || has_5(dice_array) | |
end | |
def has_1?(dice_array) | |
dice_array.include?(1) | |
end | |
def has_5?(dice_array) | |
dice_array.include?(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aahed | |
aalii | |
aargh | |
abaca | |
abaci | |
aback | |
abada | |
abaff | |
abaft | |
abaka |
OlderNewer