Created
March 30, 2009 21:14
-
-
Save jnicklas/87891 to your computer and use it in GitHub Desktop.
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
# Consistent API so we can change the underpinnings without breakage | |
# Everything done inside the block will adopt :activerecord as trait | |
Rails.generator(:model).add(:activerecord) do | |
# this will be handled as a binary file | |
action 'file.png' | |
# as a template | |
action 'some_ruby_file.rb' | |
# as a directory | |
action 'some/directory' | |
# invoke! is a stupid name, call it what it does instead... | |
generate :migration | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment