Sha256: a908cbd5fc15efe02b99fee39e8ba645505e18427bf9b98231d6d6dd0d244d36

Contents?: true

Size: 294 Bytes

Versions: 50

Compression:

Stored size: 294 Bytes

Contents

if defined?(ActiveRecord)
  ActiveRecord::Base.send :class_eval do
  
    def dom_id
      new_record? ? "new_#{self.class.name.underscore}" : "#{self.class.name.underscore}_#{id}"
    end
  
  
    # 
    # handy accessor for @attributes_cache
    #
    attr_reader :attributes_cache
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
rails-ext-0.3.11 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.10 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.9 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.8 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.6 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.5 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.4 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.3 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.2 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.1 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.2.21 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.20 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.19 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.18 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.17 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.16 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.15 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.14 lib/rails_ext/active_record_ext.rb
rails-ext-0.2.13 lib/rails_ext/active_record_ext.rb