aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Prevent overwriting of table name in merging SQL conditions [#2949 ↵Tristan Dunn2009-08-101-1/+3
| | | | state:resolved]
* Model#human_attribute_name now accept symbols [#3025 status:resolved]Arthur Zapparoli2009-08-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make sure association conditions work with :include and :joins [#358 ↵Vladimir Meremyanin2009-08-091-3/+5
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* With multiparameter date attributes, the behaviour when empty fields are ↵Hugo Peixoto2009-08-091-5/+9
| | | | | | | | present is now coherent with the one described in the date_select documentation. [#1715 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵José Valim2009-08-071-0/+7
| | | | destroyed objects and refactor mime responds tests and documentation.
* Extract generic attribute method generation to AMoJoshua Peek2009-08-041-5/+0
|
* Start separating primary key concernsJoshua Peek2009-07-301-65/+1
|
* Move id attribute methods into their related concernJoshua Peek2009-07-301-29/+0
|
* Restore DangerousAttributeErrorJoshua Peek2009-07-301-0/+4
|
* Wrap up attribute method reset concerns in 'undefine_attribute_methods'Joshua Peek2009-07-301-2/+2
|
* Generate methods for all suffixesJoshua Peek2009-07-301-4/+0
|
* Concernify AR AttributeMethodsJoshua Peek2009-07-301-1/+3
|
* Merge docrailsPratik Naik2009-07-251-3/+39
|
* AMo conversion helperJoshua Peek2009-07-211-7/+1
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-0/+7
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Added AR:B#dup method for duplicationg object without frozen attributes ↵Yehuda Katz + Carl Lerche2009-07-011-0/+7
| | | | | [#2859 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Changed ActiveRecord::Base.human_name to underscore the class name before it ↵Justin French2009-06-301-3/+3
| | | | | | | | | humanizes it This gives you 'Post comment' rather than 'Postcomment' by default. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2120 state:committed]
* Make sure the wrapped exceptions also have the original exception available.Michael Koziarski2009-06-261-2/+13
| | | | [#2419 state:committed]
* Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.Michael Schuerig2009-06-261-0/+4
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Translate adapter errors that indicate a violated uniqueness constraint to ↵Michael Schuerig2009-06-261-0/+4
| | | | | | ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+1
|
* uses Object#metaclass and Object#class_eval in a few spotsXavier Noria2009-06-121-1/+2
| | | | | | [#2797 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Integrate ActiveModel::Observing into ActiveRecordJoshua Peek2009-06-101-1/+1
|
* Whitelist the methods which are called by multiparameter attribute assignment.Michael Koziarski2009-06-101-8/+8
| | | | This prevents users from causing NoMethodErrors and the like by editing the parameter names, and closes a potential exploit of CVE-2009-1904.
* Remove 'core' fluff. Hookable ActiveSupport.load_all!Jeremy Kemper2009-05-201-1/+1
|
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2009-05-181-2/+2
|\
| * Remove unnecessary condition and local variable [#2602 state:resolved]Emilio Tagua2009-05-181-2/+2
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2009-05-181-1/+1
|\|
| * Make sure default_scope#create checks for options[:conditions] [#2181 ↵Pratik Naik2009-05-181-1/+1
| | | | | | | | state:resolved] [James Le Cuirot]
* | Missing 1.8.7 backport extensionsJeremy Kemper2009-05-181-0/+1
|/
* Merge commit 'origin/master'Yehuda Katz + Carl Lerche2009-05-141-9/+4
|\ | | | | | | | | | | Conflicts: actionpack/lib/action_controller/abstract/base.rb actionpack/lib/action_controller/routing.rb
| * Changed ActiveRecord::Base#exists? to invoke find_initial so that it is ↵Peter Marklund2009-05-141-8/+3
|/ | | | | | | compatible with, and doesn't lose, :include scopes (references to eager loaded tables) Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2543 state:committed]
* Cherry-pick core extensionsJeremy Kemper2009-05-131-6/+15
|
* Opt in to DependenciesJeremy Kemper2009-04-221-0/+1
|
* Ensure JoinAssociation uses aliased table name when multiple associations ↵Pratik Naik2009-04-201-2/+2
| | | | have hash conditions on the same table
* Merge docrailsPratik Naik2009-03-241-10/+13
|
* Merge docrailsPratik Naik2009-03-161-2/+2
|
* Fix spelling of an internal method [#1734 state:resolved]Chris Kampmeier2009-03-121-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't duplicate :order from scope and options, it makes mysql do extra workJeremy Kemper2009-03-101-1/+3
|
* Ensure nested with_scope merges conditions inside out [#2193 state:resolved]Manfred Stienstra2009-03-101-11/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow find(:last) :order be a symbol [#2024 state:resolved]Rob Anderton2009-03-091-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix find_by_last when order is given [#2127 state:committed]Jan De Poorter2009-03-091-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Allow :having conditions to be sanitized like regular :condition. [#2158 ↵Will Bryant2009-03-061-2/+2
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure supplie :from has precedence over scoped :from [#1370 state:resolved]Pratik Naik2009-03-061-1/+1
|
* Fix that scoped find with :group and :having [#2006 state:resolved]Mike Gunderloy2009-02-281-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrailsPratik Naik2009-02-241-1/+2
|
* Added ActiveRecord::Base.each and ActiveRecord::Base.find_in_batches for ↵David Heinemeier Hansson2009-02-231-1/+1
| | | | batch processing [DHH/Jamis Buck]
* support end-exclusive ... Ranges in SQL hash condition sanitization properlyWill Bryant2009-02-061-6/+10
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1865 state:committed]
* Add ActiveRecord::Base.exists? with no args [#1817 state:committed]Scott Taylor2009-02-051-2/+4
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Add support for nested object forms to ActiveRecord and the helpers in ↵Eloy Duran2009-02-011-0/+5
| | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed]