Class: PickyGuard::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PickyGuard::Generators::InstallGenerator
- Defined in:
- lib/generators/picky_guard/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_install ⇒ Object
8 9 10 11 12 13 |
# File 'lib/generators/picky_guard/install_generator.rb', line 8 def generate_install copy_file 'ability.rb', 'app/models/ability.rb' copy_file 'role_policies.rb', 'app/picky_guard/role_policies.rb' copy_file 'resource_actions.rb', 'app/picky_guard/resource_actions.rb' copy_file 'user_role_checker.rb', 'app/picky_guard/user_role_checker.rb' end |