lib/phrase/models/locale_details.rb in phrase-2.7.1 vs lib/phrase/models/locale_details.rb in phrase-2.7.2

- old
+ new

@@ -16,10 +16,12 @@ attr_accessor :plural_forms attr_accessor :source_locale + attr_accessor :fallback_locale + attr_accessor :created_at attr_accessor :updated_at attr_accessor :statistics @@ -33,10 +35,11 @@ :'default' => :'default', :'main' => :'main', :'rtl' => :'rtl', :'plural_forms' => :'plural_forms', :'source_locale' => :'source_locale', + :'fallback_locale' => :'fallback_locale', :'created_at' => :'created_at', :'updated_at' => :'updated_at', :'statistics' => :'statistics' } end @@ -50,10 +53,11 @@ :'default' => :'Boolean', :'main' => :'Boolean', :'rtl' => :'Boolean', :'plural_forms' => :'Array<String>', :'source_locale' => :'LocalePreview', + :'fallback_locale' => :'LocalePreview', :'created_at' => :'DateTime', :'updated_at' => :'DateTime', :'statistics' => :'LocaleStatistics' } end @@ -119,10 +123,14 @@ if attributes.key?(:'source_locale') self.source_locale = attributes[:'source_locale'] end + if attributes.key?(:'fallback_locale') + self.fallback_locale = attributes[:'fallback_locale'] + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'updated_at') @@ -158,10 +166,11 @@ default == o.default && main == o.main && rtl == o.rtl && plural_forms == o.plural_forms && source_locale == o.source_locale && + fallback_locale == o.fallback_locale && created_at == o.created_at && updated_at == o.updated_at && statistics == o.statistics end @@ -172,10 +181,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, code, default, main, rtl, plural_forms, source_locale, created_at, updated_at, statistics].hash + [id, name, code, default, main, rtl, plural_forms, source_locale, fallback_locale, created_at, updated_at, statistics].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself