Module: ActiveRecord::Serialization

Defined in:
lib/restfulx/active_foo.rb

Overview

refer to: api.rubyonrails.org/ for more details

Instance Method Summary collapse

Instance Method Details

#to_fxml(options = {}, &block) ⇒ Object

Enforces Flex friendly options on XML and delegates processing to standard to_xml



128
129
130
131
132
133
# File 'lib/restfulx/active_foo.rb', line 128

def to_fxml(options = {}, &block)
  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)
  to_xml(options, &block)
end