class Ardm::Ar::Record
Public Class Methods
property(property_name, property_type, options={})
click to toggle source
Calls superclass method
# File lib/ardm/ar/record.rb, line 12 def self.property(property_name, property_type, options={}) prop = super begin attr_accessible prop.name attr_accessible prop.field rescue => e puts "WARNING: `attr_accessible` not found. Include 'protected_attributes' gem in rails >= 4 (if you need it).\n#{e}" unless $attr_accessible_warning $attr_accessible_warning = true end prop end