Module: ActiveRecord::Serialization

Defined in:
lib/ruboss_on_ruby/active_foo.rb

Instance Method Summary collapse

Instance Method Details

#to_fxml(options = {}) ⇒ Object



76
77
78
79
80
81
82
83
# File 'lib/ruboss_on_ruby/active_foo.rb', line 76

def to_fxml(options = {})
  options.merge!(:dasherize => false)
  default_except = [:crypted_password, :salt, :remember_token, :remember_token_expires_at]
  options[:except] = (options[:except] ? options[:except] + default_except : default_except)
  options[:methods] = [options[:methods] || []].flatten + self.class.default_fxml_methods_array if self.class.respond_to?(:default_fxml_methods_array)      
  options[:include] = [options[:include] || []].flatten + self.class.default_fxml_include_params if self.class.respond_to?(:default_fxml_include_params)
  to_xml(options)
end