aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-12-28 16:16:21 +0530
committerPratik Naik <pratiknaik@gmail.com>2009-12-28 16:17:46 +0530
commit02207dc02c10f2b00a84594962d7bf6ffcf539a9 (patch)
tree562109a2dee894c95eeb40164999a9af88032a5b /activerecord/lib/active_record/base.rb
parent5156507e13bb17f1852576acfd921a39e06de175 (diff)
downloadrails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.tar.gz
rails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.tar.bz2
rails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.zip
Add Model.readonly and association_collection#readonly finder method
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 30f0207aab..a9b011dd76 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -652,7 +652,7 @@ module ActiveRecord #:nodoc:
end
end
- delegate :select, :group, :order, :limit, :joins, :where, :preload, :eager_load, :from, :lock, :to => :scoped
+ delegate :select, :group, :order, :limit, :joins, :where, :preload, :eager_load, :from, :lock, :readonly, :to => :scoped
# A convenience wrapper for <tt>find(:first, *args)</tt>. You can pass in all the
# same arguments to this method as you can to <tt>find(:first)</tt>.