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



18
19
20
# File 'lib/mauth/dice_bag/mauth_templates.rb', line 18

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

#templates_locationObject



14
15
16
# File 'lib/mauth/dice_bag/mauth_templates.rb', line 14

def templates_location
  'config/initializers'
end