Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | :nodoc:s #unscoped until its behavior is more clear, now sometimes works, ↵ | Xavier Noria | 2010-08-25 | 1 | -1/+1 |
| | | | | sometimes not | ||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-08-25 | 1 | -0/+5 |
|\ | |||||
| * | unscoped does not work when chained with named_scope | Neeraj Singh | 2010-08-23 | 1 | -0/+5 |
| | | |||||
* | | fix broken relative links [#5415 state:committed] | Joost Baaij | 2010-08-24 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Fix docs to reference ActiveRecord::LogSubscriber | Evgeniy Dolzhenko | 2010-08-21 | 1 | -1/+1 |
| | | | | since Rails::LogSubscriber doesn't seem to be defined anymore | ||||
* | Optimize find_sti_class when store_full_sti_class is true | Andrew White | 2010-08-19 | 1 | -1/+5 |
| | | | | | | [#5403] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Memoize STI class lookups for the duration of a request | Jeremy Kemper | 2010-08-19 | 1 | -2/+2 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -87/+87 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -3/+3 |
| | | | | This will hopefully make Active Record run a bit more faster. | ||||
* | commit review: applies guidelines to "# =>" | Xavier Noria | 2010-08-12 | 1 | -2/+2 |
| | |||||
* | updating documentation for named_scope and default_scope | Neeraj Singh | 2010-08-12 | 1 | -0/+10 |
| | |||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-08-05 | 1 | -9/+9 |
|\ | |||||
| * | fixing documentation | Neeraj Singh | 2010-08-03 | 1 | -9/+9 |
| | | |||||
* | | I'm unsure how cloning was working in Rails 3 before | wycats | 2010-08-04 | 1 | -1/+1 |
|/ | |||||
* | Correcting the documentation which wrongly states that each dynamic finder ↵ | Neeraj Singh | 2010-08-02 | 1 | -7/+4 |
| | | | | | | | creates method on the class. Only dynamic finders using <tt>scoped_by_*</tt> creates new methods. | ||||
* | Adding to AR::Base documentation about dynamically scopeded_by query | Neeraj Singh | 2010-08-02 | 1 | -9/+17 |
| | | | | User.scoped_by_user_name('David') | ||||
* | updating documentation to ensure line does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -88/+128 |
| | |||||
* | slight performance improvement when grabbing an arel table | Aaron Patterson | 2010-07-27 | 1 | -1/+1 |
| | |||||
* | Don't interpolate a blank string, avoid warnings | Santiago Pastorino | 2010-07-26 | 1 | -0/+2 |
| | |||||
* | Fixes syntax error in "with_scope" example | Arkadiusz Holko | 2010-07-25 | 1 | -1/+1 |
| | |||||
* | Revert "Style fixes" | Pratik Naik | 2010-07-15 | 1 | -1/+1 |
| | | | | This reverts commit 3c300b31219f2af3ecd46ef22b04e5c5548db899. | ||||
* | Style fixes | wycats | 2010-07-14 | 1 | -1/+1 |
| | |||||
* | Style fixes | Pratik Naik | 2010-07-14 | 1 | -1/+1 |
| | |||||
* | Added reorder delegation for ActiveRecord::Base(to be able to overwrite the ↵ | Vitalii Khustochka | 2010-07-13 | 1 | -1/+1 |
| | | | | | | default_scope ordering in the named scope [#5093 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Return from ActiveRecord::Base#attributes= unless value is a hash [#4070 ↵ | David Trasbo | 2010-07-08 | 1 | -1/+1 |
| | | | | | | state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removed an old unused method in AR which removed readonly attributes | Josh Kalderimis | 2010-07-08 | 1 | -9/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removing unused method | Neeraj Singh | 2010-07-08 | 1 | -5/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | mass_assignment_security moved from AR to AMo, and minor test cleanup | Josh Kalderimis | 2010-07-08 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | minor changes to mass assignment security patch to bring it in line with ↵ | Josh Kalderimis | 2010-07-08 | 1 | -2/+2 |
| | | | | | | rails standards Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Mass assignment security refactoring | Eric Chapweske | 2010-07-08 | 1 | -133/+11 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-07-07 | 1 | -2/+4 |
|\ | |||||
| * | clarifying the comments regarding base_class declaration | Neeraj Singh | 2010-07-01 | 1 | -2/+4 |
| | | |||||
* | | Make relation a private method. | José Valim | 2010-07-01 | 1 | -5/+6 |
|/ | |||||
* | Remove ActiveRecord::Base#class_name [#379 state:committed] | David Trasbo | 2010-06-29 | 1 | -8/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Tidy up deprecation message for with_exclusive_scope. | José Valim | 2010-06-29 | 1 | -10/+11 |
| | |||||
* | Add scoping and unscoped as the syntax to replace the old with_scope and ↵ | José Valim | 2010-06-29 | 1 | -10/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with_exclusive_scope. A few examples: * with_scope now should be scoping: Before: Comment.with_scope(:find => { :conditions => { :post_id => 1 } }) do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end After: Comment.where(:post_id => 1).scoping do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end * with_exclusive_scope now should be unscoped: class Post < ActiveRecord::Base default_scope :published => true end Post.all #=> SELECT * FROM posts WHERE published = true Before: Post.with_exclusive_scope do Post.all #=> SELECT * FROM posts end After: Post.unscoped do Post.all #=> SELECT * FROM posts end Notice you can also use unscoped without a block and it will return an anonymous scope with default_scope values: Post.unscoped.all #=> SELECT * FROM posts | ||||
* | with_exclusive_scope does not work properly if ARel is passed. It does work ↵ | Neeraj Singh | 2010-06-29 | 1 | -0/+13 |
| | | | | | | | | nicely if hash is passed. Blow up if user is attempting it pass ARel to with_exclusive_scope. [#3838 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add missing require, Base use deprecate method | Santiago Pastorino | 2010-06-27 | 1 | -0/+1 |
| | |||||
* | Warn that ActiveRecord::Base.reset_subclasses is gone in Rails 3 final. | Jeremy Kemper | 2010-06-27 | 1 | -0/+12 |
| | |||||
* | quotes are not necessary here | Santiago Pastorino | 2010-06-24 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -0/+1 |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | ||||
* | Remove incorrect comment regarding #initialize_copy | Paul Gillard | 2010-06-23 | 1 | -8/+0 |
| | | | | | | Comment added in #3164 is incorrect after reading http://dev.rubyonrails.org/ticket/7191. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Don't clone associations [#4894 state:resolved] | Paul Gillard | 2010-06-23 | 1 | -0/+1 |
| | | | | | | Cloning an active record object should be shallow in that it should copy attributes but not associations. This was no longer true as a result of #3164. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge remote branch 'rails/master' | Xavier Noria | 2010-06-20 | 1 | -32/+4 |
|\ | | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb | ||||
| * | remove executable permission from files that don't need it. [#4802 ↵ | rohit | 2010-06-20 | 1 | -0/+0 |
| | | | | | | | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
| * | ActiveModel::Validations::Callbacks should not be required by default. | José Valim | 2010-06-19 | 1 | -1/+0 |
| | | |||||
| * | moving before_validation and after_validation functionality from ↵ | Neeraj Singh | 2010-06-19 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | ActiveRecord to ActiveModel [#4653 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
| * | ActiveRecord and ActionPack now use the new descendants implementation. | José Valim | 2010-06-19 | 1 | -32/+4 |
| | | |||||
* | | Adds title and basic description where needed. | Rizwan Reza | 2010-06-15 | 1 | -0/+2 |
| | | |||||
* | | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 |
|\ \ | |/ |/| |