17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/generators/ibrain/auth/install/install_generator.rb', line 17
def add_files
template 'config/initializers/devise.rb.tt', 'config/initializers/devise.rb', { skip: true }
template 'config/initializers/ibrain_auth.rb.tt', 'config/initializers/ibrain_auth.rb', { skip: true }
template 'config/initializers/ibrain_jwt.rb.tt', 'config/initializers/ibrain_jwt.rb', { skip: true }
if options[:with_social]
template 'config/initializers/omniauth.rb.tt', 'config/initializers/omniauth.rb', { skip: true }
end
if options[:with_ridgepole]
template 'db/schemas/users_schema.erb', 'db/schemas/users.schema', { skip: true }
else
template 'db/schemas/users_migrate.erb', "db/migrate/#{Time.current.to_i}_add_users.rb", { skip: true }
end
end
|