Module: PufferPages::Backends::Mixins::Localable

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
lib/puffer_pages/backends/models/mixins/localable.rb

Defined Under Namespace

Classes: Locales

Instance Method Summary collapse

Instance Method Details

#localesObject



15
16
17
18
# File 'lib/puffer_pages/backends/models/mixins/localable.rb', line 15

def locales
  value = read_attribute(:locales)
  value.is_a?(Locales) ? value : Locales.new(value)
end