Class: MauthInitializerTemplate

Inherits:
DiceBag::AvailableTemplates
  • Object
show all
Defined in:
lib/mauth/dice_bag/mauth_templates.rb

Instance Method Summary collapse

Instance Method Details

#templatesObject



16
17
18
# File 'lib/mauth/dice_bag/mauth_templates.rb', line 16

def templates
  [File.join(File.dirname(__FILE__), 'mauth.rb.dice')] if Object.const_defined?('Rails')
end

#templates_locationObject



12
13
14
# File 'lib/mauth/dice_bag/mauth_templates.rb', line 12

def templates_location
  'config/initializers'
end