Module: SimpleFormPasswordWithHints

Defined in:
lib/simple_form_password_with_hints.rb,
lib/simple_form_password_with_hints/version.rb

Constant Summary collapse

VERSION =
"0.0.7".freeze

Class Method Summary collapse

Class Method Details

.add_locales!Object



11
12
13
# File 'lib/simple_form_password_with_hints.rb', line 11

def self.add_locales!
  I18n.load_path += Dir["#{root_path}/config/locales/*.yml"]
end

.add_paths!Object



5
6
7
8
9
# File 'lib/simple_form_password_with_hints.rb', line 5

def self.add_paths!
  Sprockets.append_path stylesheets_path
  Sprockets.append_path images_path
  Sprockets.append_path javascripts_path
end

.assets_pathObject



29
30
31
# File 'lib/simple_form_password_with_hints.rb', line 29

def self.assets_path
  @assets_path ||= File.join root_path, 'assets'
end

.images_pathObject



21
22
23
# File 'lib/simple_form_password_with_hints.rb', line 21

def self.images_path
  File.join assets_path, 'images'
end

.javascripts_pathObject



25
26
27
# File 'lib/simple_form_password_with_hints.rb', line 25

def self.javascripts_path
  File.join assets_path, 'javascripts'
end

.root_pathObject



33
34
35
# File 'lib/simple_form_password_with_hints.rb', line 33

def self.root_path
  @root_path ||= File.expand_path '..', File.dirname(__FILE__)
end

.stylesheets_pathObject



17
18
19
# File 'lib/simple_form_password_with_hints.rb', line 17

def self.stylesheets_path
  File.join assets_path, 'stylesheets'
end