arcane
arcane copied to clipboard
Rails generators
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
- [x] Basic generators
- [ ] Allow for options to be sent in with refinery generator
- [ ] Extend the rails scaffold