Class: LightService::LocalizationAdapter
- Inherits:
-
Object
- Object
- LightService::LocalizationAdapter
- Defined in:
- lib/light-service/localization_adapter.rb
Instance Method Summary collapse
- #failure(message_or_key, action_class, options = {}) ⇒ Object
- #success(message_or_key, action_class, options = {}) ⇒ Object
Instance Method Details
#failure(message_or_key, action_class, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/light-service/localization_adapter.rb', line 3 def failure(, action_class, = {}) (, action_class.to_s.underscore, .merge(:type => :failures)) end |
#success(message_or_key, action_class, options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/light-service/localization_adapter.rb', line 9 def success(, action_class, = {}) (, action_class.to_s.underscore, .merge(:type => :successes)) end |