Class: NexmoInitializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_nexmo_initializerObject



8
9
10
11
12
13
14
# File 'lib/generators/nexmo_initializer/nexmo_initializer_generator.rb', line 8

def create_nexmo_initializer
  if Rails.application.credentials.nexmo
    return credentials_initializer
  end

  env_initializer
end