Module: ActiveRecord::Serialization

Defined in:
lib/ruboss4ruby/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



133
134
135
136
137
138
# File 'lib/ruboss4ruby/active_foo.rb', line 133

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