module Hashie::Extensions::IgnoreUndeclared

def initialize_attributes(attributes)

def initialize_attributes(attributes)
  attributes.each_pair do |att, value|
    next unless self.class.property?(att) || (self.class.respond_to?(:translations) && self.class.translations.include?(att.to_sym))
    self[att] = value
  end if attributes
end