Class: Rbacfull::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/rbacfull/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_helpersObject



31
32
33
34
# File 'lib/generators/rbacfull/install_generator.rb', line 31

def copy_helpers
  copy_helper "user_helper"

end

#copy_migrationsObject



16
17
18
19
20
21
# File 'lib/generators/rbacfull/install_generator.rb', line 16

def copy_migrations
  copy_migration "create_user_roles"
  copy_migration "create_roles"
  copy_migration "create_actions"
copy_migration "create_permissions"
end

#copy_modelsObject



23
24
25
26
27
28
# File 'lib/generators/rbacfull/install_generator.rb', line 23

def copy_models
  copy_model "role"
  copy_model "action"
  copy_model "permission"
  copy_model "user_role"
end

#installObject



11
12
13
14
# File 'lib/generators/rbacfull/install_generator.rb', line 11

def install
  puts "Install gem's files"

end