module AttrSecure::Adapters::ActiveRecord

Public Class Methods

read_attribute(object, attribute) click to toggle source
# File lib/attr_secure/adapters/active_record.rb, line 15
def self.read_attribute(object, attribute)
  object.send :read_attribute, attribute.to_sym
end
valid?(object) click to toggle source
# File lib/attr_secure/adapters/active_record.rb, line 5
def self.valid?(object)
  object.respond_to?(:<) && object < ::ActiveRecord::Base
rescue NameError
  false
end
write_attribute(object, attribute, value) click to toggle source
# File lib/attr_secure/adapters/active_record.rb, line 11
def self.write_attribute(object, attribute, value)
  object.send :write_attribute, attribute, value
end