Module: ActsAsBookable::T

Defined in:
lib/acts_as_bookable/t.rb

Class Method Summary collapse

Class Method Details

.er(message, opts = {}) ⇒ Object



7
8
9
# File 'lib/acts_as_bookable/t.rb', line 7

def self.er(message, opts={})
  self.t('errors.messages.' + message, opts)
end

.t(message, opts = {}) ⇒ Object



3
4
5
# File 'lib/acts_as_bookable/t.rb', line 3

def self.t(message, opts={})
  I18n.t('.acts_as_bookable.' + message, opts)
end