Class: DeviseJiraAuthenticable::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/devise_jira_authenticable/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



25
26
27
# File 'lib/generators/devise_jira_authenticable/install_generator.rb', line 25

def self.next_migration_number(path)
  ActiveRecord::Generators::Base.next_migration_number(path)
end

Instance Method Details

#installObject



20
21
22
23
# File 'lib/generators/devise_jira_authenticable/install_generator.rb', line 20

def install
  inject_into_file("config/initializers/devise.rb", default_devise_settings,
                   before: /^\s*.*==> Scopes configuration/)
end