Class: Roguelytics::InitializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/generators/roguelytics_generator.rb', line 11

def create_initializer_file
	create_file "config/initializers/roguelytics.rb", "
#
# Roguelytics Initializer
#

require 'roguelytics'

ROGUELYTICS_SITEKEY = '' if Rails.env.production?
ROGUELYTICS_SITEKEY = '' if Rails.env.staging?
ROGUELYTICS_SITEKEY = '' if Rails.env.development?
ROGUELYTICS_SITEKEY = '' if Rails.env.qa?
ROGUELYTICS_SITEKEY = '' if Rails.env.test?
"
end