Class: ActionAuthorizer::InstallGenerator

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_authorizersObject



4
5
6
7
# File 'lib/generators/action_authorizer/install/install_generator.rb', line 4

def create_authorizers
  template 'app/authorizers/action_authorizer/base.rb'
  template 'app/authorizers/application_authorizer.rb'
end

#create_helpersObject



9
10
11
# File 'lib/generators/action_authorizer/install/install_generator.rb', line 9

def create_helpers
  template 'app/helpers/action_authorizer_helper.rb'
end

#create_spec_helpersObject



13
14
15
# File 'lib/generators/action_authorizer/install/install_generator.rb', line 13

def create_spec_helpers
  template 'spec/action_authorizer_matchers_helper.rb'
end