Class: HasTokenOn::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HasTokenOn::ConfigGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/has_token_on/config_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
28 29 30 31 32 |
# File 'lib/generators/has_token_on/config_generator.rb', line 28 def create_migration_file migration_template "create_token.rb.erb", "db/migrate/create_#{self.model}_#{self.name}.rb", :assigns => { :model => self.model, :name => self.name } end |