serialize this model as AMF
# File lib/restfulx/rx_active_record.rb, line 273 def to_amf(options = {}) default_except = [:crypted_password, :salt, :remember_token, :remember_token_expires_at, :created_at, :updated_at] options[:except] = (options[:except] ? options[:except] + default_except : default_except) RestfulX::Serialization::AMFSerializer.new(self, options).to_s end
serialize this model as fXML
# File lib/restfulx/rx_active_record.rb, line 281 def to_fxml(options = {}) options.merge!(:dasherize => false) default_except = [:crypted_password, :salt, :remember_token, :remember_token_expires_at, :created_at, :updated_at] options[:except] = (options[:except] ? options[:except] + default_except : default_except) RestfulX::Serialization::FXMLSerializer.new(self, options).to_s end
# File lib/restfulx/rx_active_record.rb, line 268 def unique_id "#{self.class.to_s}_#{self.attributes()['id']}" end