Class: Rollable::Generators::SetupGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Rollable::Generators::SetupGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/rollable/setup/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_role_migration_template ⇒ Object
16 17 18 |
# File 'lib/generators/rollable/setup/setup_generator.rb', line 16 def copy_role_migration_template migration_template 'migration.rb', "db/migrate/create_roles.rb" end |
#copy_role_model_template ⇒ Object
12 13 14 |
# File 'lib/generators/rollable/setup/setup_generator.rb', line 12 def copy_role_model_template template 'role.rb', 'app/models/role.rb' end |
#some_notes ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/generators/rollable/setup/setup_generator.rb', line 20 def some_notes puts <<-END ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rollable has been succesfully installed! Note that rollable is still in its early stages. Rollable does not and will not ever define authorization semantics. Its purely intended for agnostic roles between objects only. If you like it, leave a note or feel free to contribute! To use rollable, make sure you add: include Rollable::Base rollables <model names>, <options> in #{class_name}! Have fun, Timon Vonk END end |