module Hashie::Extensions::IgnoreUndeclared

def initialize_attributes(attributes)

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