class ActiveRecord::Base
Public Instance Methods
columns()
click to toggle source
# File lib/acread/active_record_ext.rb, line 8 def columns self.class.columns.reject { |c| (self.class.deprecated_attributes || []).include? c.name.to_s} end
serializable_hash(options = {})
click to toggle source
# File lib/acread/active_record_ext.rb, line 15 def serializable_hash(options = {}) options = {} if options.nil? options = { :only => self.attributes.keys.map(&:to_sym) - (self.class.deprecated_attributes || []).map(&:to_sym) }.update(options) super_serializable_hash(options) end
Also aliased as: super_serializable_hash
super_serializable_hash(options = {})
ensure the deprecated attributes will be skip when serialize the record
Alias for: serializable_hash