module Locomotive::Steam::Services::Concerns::Decorator
Private Instance Methods
decorate(klass = Decorators::TemplateDecorator) { || ... }
click to toggle source
# File lib/locomotive/steam/services/concerns/decorator.rb, line 10 def decorate(klass = Decorators::TemplateDecorator, &block) if (object = yield).blank? object else klass.decorate(object, locale, default_locale) end end
default_locale()
click to toggle source
# File lib/locomotive/steam/services/concerns/decorator.rb, line 26 def default_locale repository.site.default_locale end
i18n_decorate(&block)
click to toggle source
# File lib/locomotive/steam/services/concerns/decorator.rb, line 18 def i18n_decorate(&block) decorate(Decorators::I18nDecorator, &block) end
locale()
click to toggle source
# File lib/locomotive/steam/services/concerns/decorator.rb, line 22 def locale repository.locale end