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 || [] super(attributes.select { |attr, _| klass.property?(attr) || translations.include?(attr) }) end
def property_exists?(property)
def property_exists?(property) self.class.property?(property) end