Class: Pundit::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pundit/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_application_policyObject


8
9
10
# File 'lib/generators/pundit/install/install_generator.rb', line 8

def copy_application_policy
  template "application_policy.rb", "app/policies/application_policy.rb"
end