Class: Kakimasu::Generators::PolicyGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_policiesObject

Copy policies for ability to edit them



9
10
11
12
13
14
15
# File 'lib/generators/kakimasu/policy_generator.rb', line 9

def copy_policies
  copy_file 'translation_policy.rb', 'app/policies/translations_policy.rb'
  puts ''
  puts '***********************************'
  puts 'Policies was successfully generated!'   # Success message
  puts '***********************************'
end