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
crystal-ext-0.0.3 lib/rails_ext/active_record/micelaneous.rb
crystal-ext-0.0.2 lib/rails_ext/active_record/micelaneous.rb
crystal-ext-0.0.1 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.29 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.28 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.27 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.25 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.24 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.23 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.22 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.21 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.20 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.19 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.18 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.17 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.16 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.15 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.14 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.13 lib/rails_ext/active_record/micelaneous.rb
rails-ext-0.3.12 lib/rails_ext/active_record/micelaneous.rb