Module: UiBibz::Helpers::UtilsHelper
- Defined in:
- lib/ui_bibz/helpers/utils_helper.rb
Instance Method Summary collapse
- #ui_form_for(object, *args, &block) ⇒ Object
-
#ui_translatize(translation, options) ⇒ Object
Same method like I18n.translate but accept strings in default argument.
Instance Method Details
#ui_form_for(object, *args, &block) ⇒ Object
10 11 12 13 |
# File 'lib/ui_bibz/helpers/utils_helper.rb', line 10 def ui_form_for(object, *args, &block) = args. simple_form_for(object, *(args << ()), &block) end |
#ui_translatize(translation, options) ⇒ Object
Same method like I18n.translate but accept strings in default argument
6 7 8 |
# File 'lib/ui_bibz/helpers/utils_helper.rb', line 6 def ui_translatize(translation, ) UiBibz::Utils::Internationalization.new(translation, ).translate end |