Skip to content

Instantly share code, notes, and snippets.

View nemrow's full-sized avatar

Jordan Nemrow nemrow

  • Woflow
  • San Francisco
View GitHub Profile
# lib/ripped_params/project_params.yml
---
:require: :project
:permit:
- :name
- :service_id
- :quote
- :document_attributes:
- :filepicker_url
class ProjectsController < ApplicationController
uses_ripped_params :project_params
end
def create
Project.create(project_params)
end
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)
aahed
aalii
aargh
abaca
abaci
aback
abada
abaff
abaft
abaka