Class: Godmin::PolicyGenerator

Inherits:
Generators::NamedBase show all
Defined in:
lib/generators/godmin/policy/policy_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

source_paths

Instance Method Details

#create_policyObject



4
5
6
# File 'lib/generators/godmin/policy/policy_generator.rb', line 4

def create_policy
  template "policy.rb", File.join("app/policies", class_path, "#{file_name}_policy.rb")
end