aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
| * Addresses an inconsistency in the ActiveRecord::Base.method_missing handling ↵Jeremy Friesen2011-05-241-1/+1
| | | | | | | | of dynamic finder methods and the passing of the &block parameter for :find_by_attributes.
* | Use an instance variable to store the current masss assignment optionsAndrew White2011-07-041-9/+14
| |
* | call super rather than delegating to the other objects equal? methodAaron Patterson2011-06-301-1/+1
| |
* | just alias eql? to == for frewer method callsAaron Patterson2011-06-301-5/+1
| |
* | Define to_ary on ActiveRecord::Base to return nil. Improve performance of ↵Jon Leighton2011-06-301-0/+12
| | | | | | | | Array#flatten under 1.9, see comment for details.
* | Merge pull request #1860 from dmathieu/comparisonAaron Patterson2011-06-281-0/+9
|\ \ | | | | | | Allow comparison on model objects - Closes #1858
| * | comparing different classes returns nilDamien Mathieu2011-06-261-1/+5
| | |
| * | allow comparison on model objects - Closes #1858Damien Mathieu2011-06-261-0/+5
| | |
* | | remove useless assignmentAaron Patterson2011-06-281-2/+1
| | |
* | | reduce object allocation during AR instantiationAaron Patterson2011-06-281-0/+2
| | |
* | | remove the check for needs_type_condition? because ensure_proper_type will ↵Aaron Patterson2011-06-271-2/+3
| | | | | | | | | | | | pick up the type column
* | | stop using && for the short circuit side effectAaron Patterson2011-06-271-1/+1
| | |
* | | let strings be converted to symbols inside the interpreterAaron Patterson2011-06-271-2/+2
| | |
* | | avoice paying hash cost if there are no serialized attributesAaron Patterson2011-06-271-3/+4
| | |
* | | cache column defaults for AR object instantiationAaron Patterson2011-06-271-0/+6
| | |
* | | AR object instantiation is ~30% faster in the simple caseAaron Patterson2011-06-271-1/+1
| | |
* | | initialize instance variablesAaron Patterson2011-06-271-0/+2
|/ /
* | Perf fix - Use an instance variable instead of a class_attribute. Thanks ↵Jon Leighton2011-06-161-8/+4
| | | | | | | | @josevalim and @jhawthorn for the prompting.
* | Pass mass-assignment options to nested models - closes #1673.Andrew White2011-06-131-3/+6
| |
* | don't reinitialize the arel_table unless the table_name changesDamien Mathieu2011-06-091-1/+2
| |
* | No need to create a new Arel::Table, as the arel_table method already ↵Rodrigo Navarro2011-06-081-1/+0
| | | | | | | | creates a new one
* | remove warning: assigned but unused variableSantiago Pastorino2011-06-081-1/+1
| |
* | Raise NameError instead of ArgumentError in ActiveSupport::DependenciesAndrew White2011-06-011-1/+0
| | | | | | | | | | | | | | | | ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Closes #1423
* | Merge pull request #1285 from joshk/remove_active_record_deprecationsAaron Patterson2011-05-251-15/+2
|\ \ | | | | | | removed deprecated methods, and related tests, from ActiveRecord
| * | removed deprecated methods, and related tests, from ActiveRecordJosh Kalderimis2011-05-251-15/+2
| | |
* | | Fix the AR::Base#inspect method [closes #1294]Franck Verrot2011-05-251-6/+10
|/ /
* / Fix infinite recursion where a lazy default scope references a scope. Fixes ↵Jon Leighton2011-05-251-3/+12
|/ | | | #1264.
* Merge pull request #1180 from Karunakar/documentation_changeXavier Noria2011-05-211-3/+13
|\ | | | | Documentation Error Fixed for ticket #839
| * Documentation Error Fixed for ticket #839Karunakar (Ruby)2011-05-211-3/+13
| |
* | Merge pull request #1162 from guilleiguaran/singularize_individual_table_nameJon Leighton2011-05-211-2/+2
|\ \ | |/ |/| Singularize individual table name
| * Allow pluralize_table_names for individual modelGuillermo Iguaran2011-05-201-2/+2
| |
* | Syntax cleanup: for in => eachGuillermo Iguaran2011-05-191-1/+1
|/
* Add doc to #attribute_namesSebastian Martinez2011-05-151-0/+3
|
* Add ActiveRecord::attribute_names to retrieve a list of attribute names. ↵Prem Sichanugrist2011-05-151-0/+8
| | | | This method will also return an empty array on an abstract class or a model that the table doesn't exists.
* Fix assigning protected attributes by attributes=knapo2011-05-111-4/+3
|
* fix bug in usage example of #unscopedCorin Langosch2011-05-111-1/+1
|
* Ensure assign_attributes and update_attributes do not fail on nil, closes #478.José Valim2011-05-101-0/+2
|
* renamed mass-assignment scopes to roles, updated code, tests, docs and ↵Josh Kalderimis2011-05-081-6/+6
| | | | security guide
* Class.new.name returns an empty string on 1.8José Valim2011-05-071-1/+1
|
* Revert "Revert the merge because tests did not pass."José Valim2011-05-071-0/+4
| | | | This reverts commit 886818d2bab40585c0cea763002ffc16917dd0b3.
* Revert the merge because tests did not pass.José Valim2011-05-061-4/+0
| | | | | | | Revert "Merge pull request #423 from richardiux/master" This reverts commit b8f08c4ea7c56e34e3e17c9006f1ae6d9f7504ee, reversing changes made to fd9df1b1dd1196c2233835e25a6a38956e9e3959.
* Merge pull request #423 from richardiux/masterJosé Valim2011-05-061-0/+4
|\ | | | | Identity Map caching bug
| * Adding base method symbolized_sti_name to activerecord base to be used on ↵Richard Millan2011-05-061-0/+4
| | | | | | | | identity map. Identity map now considers the inheritance when creating the caching keys
* | Multiparameter POLA, time_select fixes. See LH4346Aditya Sanghi2011-05-051-29/+52
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-041-18/+18
|\
| * Remove extra whitespacesSebastian Martinez2011-05-021-18/+18
| |
* | Merge pull request #357 from joshk/assign_attributes.David Heinemeier Hansson2011-05-011-5/+28
|\ \ | | | | | | Assign protected attributes with create/new and control the role.
| * | Added mass-assignment security :as and :without_protection support to AR.new ↵Josh Kalderimis2011-05-011-5/+28
| |/ | | | | | | and AR.create
* / removed the default_scope deprecations and updated the docs and tests to ↵Josh Kalderimis2011-04-281-36/+17
|/ | | | reflect its use cases
* deprecated the use of the guard_protected_attributes argument with ↵Josh Kalderimis2011-04-251-9/+14
| | | | attributes= in AR in favor of assign_attributes(attrs, :without_protection => true)