Class: LightService::I18n::LocalizationAdapter

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

Instance Method Summary collapse

Instance Method Details

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



4
5
6
7
8
# File 'lib/light-service/i18n/localization_adapter.rb', line 4

def failure(message_or_key, action_class, options = {})
  find_translated_message(message_or_key,
                          action_class,
                          options.merge(:type => :failure))
end

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



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

def success(message_or_key, action_class, options = {})
  find_translated_message(message_or_key,
                          action_class,
                          options.merge(:type => :success))
end