module Hashie::Extensions::IgnoreUndeclared
def initialize_attributes(attributes)
def initialize_attributes(attributes) return unless attributes klass = self.class translations = klass.respond_to?(:translations) && klass.translations attributes.each_pair do |att, value| next unless klass.property?(att) || (translations && translations.include?(att)) self[att] = value end end
def property_exists?(property)
def property_exists?(property) self.class.property?(property) end