Class: Authorization::RulesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/authorization/rules/rules_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_auth_rulesObject



7
8
9
10
11
12
# File 'lib/generators/authorization/rules/rules_generator.rb', line 7

def copy_auth_rules
  
  puts "WARNING - Copying authorization_rules template.  Make sure to back up any existing rules before overwriting."

  copy_file "authorization_rules.rb", "config/authorization_rules.rb"
end