Class: ActiveRecord::Generators::Dbi18Generator
- Inherits:
-
Base
- Object
- Base
- ActiveRecord::Generators::Dbi18Generator
- Defined in:
- lib/generators/active_record/dbi18_generator.rb
Instance Method Summary collapse
- #copy_dbi18_migration ⇒ Object
-
#generate_auth_item_model ⇒ Object
def show p “#table_name” p “#class_name” p “#name” end.
Instance Method Details
#copy_dbi18_migration ⇒ Object
22 23 24 |
# File 'lib/generators/active_record/dbi18_generator.rb', line 22 def copy_dbi18_migration migration_template "migration.rb", "db/migrate/create_" + "#{table_name}".singularize end |
#generate_auth_item_model ⇒ Object
def show
p "#{table_name}"
p "#{class_name}"
p "#{name}"
end
17 18 19 20 |
# File 'lib/generators/active_record/dbi18_generator.rb', line 17 def generate_auth_item_model invoke "active_record:model", ["#{name}", "class_id", "class_name", "locale", "hash_content", "--no-migration"], :migration => false # Rails::Generators.invoke("active_record:model", ["db_i18", "class_id", "class_name", "property", "hash_content", "--no-migration"], behavior: behavior) end |