Class: RungerActions::Generators::ActionGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/runger_actions/action/action_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_policyObject



10
11
12
# File 'lib/generators/runger_actions/action/action_generator.rb', line 10

def create_policy
  template('action.rb', File.join('app/actions', class_path, "#{file_name}.rb"))
end