lib/para/i18n/model.rb
# This method allows reading an attribute from the ActiveRecord table, whether it's
# a plain column of the table, or a field of a store (hash, json etc.) of the table,
# accessed through the ActiveRecord.store_accessor interface.
#
This method allows reading an attribute from the ActiveRecord table, whether it's
a plain column of the table, or a field of a store (hash, json etc.) of the table,
accessed through the ActiveRecord.store_accessor interface.
This method allows reading an attribute from the ActiveRecord table whether it ' s a plain column of the table or a field of a store ( hash json etc . ) of the table accessed through the ActiveRecord . store_accessor interface .
def read_plain_or_store_attribute(field)
        if plain_column?(field)
          read_attribute(field)
        elsif (store_name = find_stored_column(field))
          read_store_attribute(store_name, field)
        else
          raise ActiveRecord::UnknownAttributeError.new(self, field)
        end
      end
def read_plain_or_store_attribute ( field ) if plain_column? ( field ) read_attribute ( field ) elsif ( store_name = find_stored_column ( field ) ) read_store_attribute ( store_name , field ) else raise ActiveRecord :: UnknownAttributeError . new ( self , field ) end end
This method allows reading an attribute from the ActiveRecord table, whether it's
a plain column of the table, or a field of a store (hash, json etc.)
This method allows reading an attribute from the ActiveRecord table whether it ' s a plain column of the table or a field of a store ( hash json etc . )
field
<not_specific>