Module: Fume::RailsExt::RailsHelpers
- Defined in:
- lib/fume/rails_ext.rb
Instance Method Summary collapse
Instance Method Details
#public_path(source) ⇒ Object
20 21 22 |
# File 'lib/fume/rails_ext.rb', line 20 def public_path(source) url_for("#{ActionController::Base.relative_url_root}#{source}") end |
#translate_attribute(klass, attribute_name) ⇒ Object Also known as: ta
24 25 26 |
# File 'lib/fume/rails_ext.rb', line 24 def translate_attribute(klass, attribute_name) klass.human_attribute_name(attribute_name) end |