lib/generators/authtrail/install_generator.rb in authtrail-0.2.2 vs lib/generators/authtrail/install_generator.rb in authtrail-0.3.0
- old
+ new
@@ -8,9 +8,13 @@
def copy_migration
migration_template "login_activities_migration.rb", "db/migrate/create_login_activities.rb", migration_version: migration_version
end
+ def copy_templates
+ template "initializer.rb", "config/initializers/authtrail.rb"
+ end
+
def generate_model
template "login_activity_model.rb", "app/models/login_activity.rb"
end
def migration_version