Class: VonageInitializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_vonage_initializerObject



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

def create_vonage_initializer
  if Rails.application.credentials.vonage
    return credentials_initializer
  end

  env_initializer
end