Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails generators #2

Open
1 of 3 tasks
zeevallin opened this issue Jul 12, 2013 · 0 comments
Open
1 of 3 tasks

Rails generators #2

zeevallin opened this issue Jul 12, 2013 · 0 comments
Assignees
Milestone

Comments

@zeevallin
Copy link
Owner

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
@ghost ghost assigned zeevallin Jul 12, 2013
zeevallin pushed a commit that referenced this issue Jul 13, 2013
@zeevallin zeevallin changed the title [todo] Rails generators Rails generators Mar 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant