Class: Accessgranted::Generators::PolicyGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/access_granted/policy_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_policyObject



11
12
13
# File 'lib/generators/access_granted/policy_generator.rb', line 11

def copy_policy
  template "access_policy.rb", "app/policies/access_policy.rb"
end