Sha256: 0b2e11d7cf1b592a860cdda8e8cf17f753cd8f018408d055a6d347ccb7802a2c
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
module ActiveRecord class Base def as_json(options) if options[:include] serializable_hash(options) else options end end def to_xml(options) options end def serializable_hash(options) options end def mass_assignment_authorizer(role = :default) ['always_there', "role=#{role}"] end def self.alias_method_chain(target, feature) alias_method "#{target}_without_#{feature}", target alias_method target, "#{target}_with_#{feature}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
attribute_ext-1.3.0 | spec/support/fake_environment.rb |
attribute_ext-1.2.4 | spec/support/fake_environment.rb |
attribute_ext-1.1.0 | spec/support/fake_environment.rb |