zeevallin / arcane

Rails strong parameters, made object oriented.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails generators

zeevallin opened this issue · comments

This is how I'd like them to work

This will create your refineries folder and add a base, template refinery.

rails g arcane:install

This creates a refinery with the methods create and update.

rails g arcane:refinery Post create:content,links[title,url] update:publish

This should be the result:

class PostRefinery
  def create
    [:content, { links: [:title,:url] } ]
  end
  def update
    [:publish]
  end
end
  • Basic generators
  • Allow for options to be sent in with refinery generator
  • Extend the rails scaffold