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
- .add_locales! ⇒ Object
- .add_paths! ⇒ Object
- .assets_path ⇒ Object
- .images_path ⇒ Object
- .javascripts_path ⇒ Object
- .root_path ⇒ Object
- .stylesheets_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
21 22 23 |
# File 'lib/simple_form_password_with_hints.rb', line 21 def self.images_path File.join assets_path, 'images' end |
.javascripts_path ⇒ Object
25 26 27 |
# File 'lib/simple_form_password_with_hints.rb', line 25 def self.javascripts_path File.join assets_path, 'javascripts' end |
.root_path ⇒ Object
33 34 35 |
# File 'lib/simple_form_password_with_hints.rb', line 33 def self.root_path @root_path ||= File. '..', File.dirname(__FILE__) end |
.stylesheets_path ⇒ Object
17 18 19 |
# File 'lib/simple_form_password_with_hints.rb', line 17 def self.stylesheets_path File.join assets_path, 'stylesheets' end |