Class: FunctionalLightService::I18n::LocalizationAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/functional-light-service/i18n/localization_adapter.rb

Instance Method Summary collapse

Instance Method Details

#failure(message_or_key, action_class, i18n_options = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/functional-light-service/i18n/localization_adapter.rb', line 8

def failure(message_or_key, action_class, i18n_options = {})
  find_translated_message(message_or_key,
                          action_class,
                          i18n_options,
                          :type => :failure)
end

#success(message_or_key, action_class, i18n_options = {}) ⇒ Object



15
16
17
18
19
20
# File 'lib/functional-light-service/i18n/localization_adapter.rb', line 15

def success(message_or_key, action_class, i18n_options = {})
  find_translated_message(message_or_key,
                          action_class,
                          i18n_options,
                          :type => :success)
end