Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added config.active_record.whitelist_attributes which creates an empty ↵ | Josh Kalderimis | 2011-04-24 | 1 | -0/+3 |
| | | | | whitelist of attributes available for mass assignment for all models in your app | ||||
* | Added assign_attributes to Active Record which accepts a mass-assignment ↵ | Josh Kalderimis | 2011-04-24 | 1 | -1/+40 |
| | | | | security scope using the :as option, while also allowing mass-assignment security to be bypassed using :with_protected | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-23 | 3 | -8/+24 |
|\ | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | ||||
| * | copy-edits 0e2644c | Xavier Noria | 2011-04-23 | 3 | -3/+3 |
| | | |||||
| * | copy-edits e2656e0 | Xavier Noria | 2011-04-23 | 2 | -3/+3 |
| | | |||||
| * | copy-edits 3d45964 | Xavier Noria | 2011-04-23 | 2 | -2/+2 |
| | | |||||
| * | Added docs for #drop_database on MySQL adapter | Sebastian Martinez | 2011-04-22 | 2 | -1/+5 |
| | | |||||
| * | Added docs for #disconnect! on adapters | Sebastian Martinez | 2011-04-22 | 3 | -1/+6 |
| | | |||||
| * | Added missing docs for clear_cache! on adapters | Sebastian Martinez | 2011-04-22 | 3 | -0/+3 |
| | | |||||
| * | Added missing docs for +supports_primary_key?+ on some adapters | Sebastian Martinez | 2011-04-22 | 2 | -0/+2 |
| | | |||||
| * | Added missing docs for +support_migrations?+ on some adapters | Sebastian Martinez | 2011-04-22 | 2 | -0/+2 |
| | | |||||
| * | Have a more connection specific rdoc for +supports_statement_cache?+ | Sebastian Martinez | 2011-04-22 | 3 | -6/+6 |
| | | |||||
| * | Removed ON() on distinct comment | Sebastian Martinez | 2011-04-22 | 1 | -1/+1 |
| | | |||||
* | | split indexes and column types on money / binary iteration | Aaron Patterson | 2011-04-22 | 1 | -6/+5 |
| | | |||||
* | | fetch result row arrays from pg in C and return early if there are no money ↵ | Aaron Patterson | 2011-04-22 | 1 | -31/+36 |
| | | | | | | | | or binary columns. :heart: | ||||
* | | set the backtrace to prevent AR exceptions from lying to us | Aaron Patterson | 2011-04-22 | 1 | -1/+3 |
| | | |||||
* | | removing incorrect comment and string concatenation | Aaron Patterson | 2011-04-22 | 1 | -4/+1 |
| | | |||||
* | | The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in ↵ | Ken Collins | 2011-04-23 | 1 | -1/+1 |
| | | | | | | | | #insert to match replacement in #exec_query. | ||||
* | | Move #exec_insert to abstract adapter's database statements. | Ken Collins | 2011-04-22 | 4 | -12/+7 |
| | | |||||
* | | stop using distinct on for the unique id queries. [#6450 state:resolved] | Aaron Patterson | 2011-04-21 | 2 | -1/+3 |
|/ | |||||
* | Avoid define_method if possible. | José Valim | 2011-04-19 | 2 | -2/+2 |
| | |||||
* | Bring back support for passing a callable object to the default_scope macro. ↵ | Jon Leighton | 2011-04-18 | 1 | -0/+12 |
| | | | | You can also just use a block. | ||||
* | Un-deprecate using 'default_scope' as a macro, but if you are calling the ↵ | Jon Leighton | 2011-04-18 | 1 | -20/+27 |
| | | | | macro multiple times that will give deprecation warnings, and in 3.2 we will simply overwrite the default scope when you call the macro multiple times. | ||||
* | Fix test_load_save in test/cases/binary_test.rb (thanks @tenderlove for ↵ | Jon Leighton | 2011-04-17 | 1 | -2/+1 |
| | | | | actually working out how to fix it) | ||||
* | Bring back some bits of documentation for scopes which were removed as part ↵ | Jon Leighton | 2011-04-17 | 1 | -1/+29 |
| | | | | of the reversion in 256b363 | ||||
* | Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via ↵ | Jon Leighton | 2011-04-17 | 1 | -60/+2 |
| | | | | | | | | | | the scope class method. Just define a class method yourself instead." This reverts commit f0e198bfa1e3f9689e0cde1d194a44027fc90b3c. Conflicts: activerecord/test/models/post.rb | ||||
* | Return nil from read_attribute(:foo) if 'foo' is not present in the ↵ | Jon Leighton | 2011-04-15 | 1 | -1/+1 |
| | | | | @attributes hash, but the _foo method has been defined. This brings the behaviour into line with the 3-0-stable branch and the master branch before 93641ed6c8c684f6b4db02b6c8a22fa9bc7f0eaf (there were previously no assertions about this which is why the change slipped through). Note that actually calling the 'foo' method will still raise an error if the attribute is not present. | ||||
* | Undo performances regressions I introduced in ↵ | Jon Leighton | 2011-04-15 | 1 | -5/+23 |
| | | | | bbe0a507f287c20ab4ae8a244fbfc810665deda5 and add test for an edge case. Add comments to explain the intent of the code. | ||||
* | Remove unnecessary code from define_read_method and add assertion to make ↵ | Jon Leighton | 2011-04-15 | 1 | -7/+4 |
| | | | | sure the underscored version is actually generated | ||||
* | sort insert columns for better cache hits | Aaron Patterson | 2011-04-14 | 1 | -1/+1 |
| | |||||
* | refactoring inserts to use the same method on the connection | Aaron Patterson | 2011-04-14 | 1 | -21/+16 |
| | |||||
* | mimic prepared statements in the exec_insert for mysql2 | Aaron Patterson | 2011-04-14 | 1 | -0/+11 |
| | |||||
* | mysql type cast should return integers when typecasting true / false | Aaron Patterson | 2011-04-14 | 1 | -0/+6 |
| | |||||
* | using the database adapter to typecast before executing prepared statement | Aaron Patterson | 2011-04-14 | 2 | -2/+14 |
| | |||||
* | inserting big decimals as strings works consistently among dbs, so use ↵ | Aaron Patterson | 2011-04-14 | 1 | -1/+1 |
| | | | | string form | ||||
* | insert statements are prepared, but values are not escaped properly | Aaron Patterson | 2011-04-14 | 5 | -8/+64 |
| | |||||
* | adding a type cast method for prepared statements | Aaron Patterson | 2011-04-14 | 2 | -1/+37 |
| | |||||
* | Extract the constraint-building for joins in JoinAssociation into a separate ↵ | Jon Leighton | 2011-04-14 | 1 | -8/+14 |
| | | | | method to make it easy to change/override (requested by Ernie Miller so that MetaWhere can add to it easily) | ||||
* | Fixes performance issue introduced in 3.0.6 (issue #6695) | Stian Grytøyr | 2011-04-14 | 1 | -3/+5 |
| | |||||
* | do not depend on to_yaml being called, but rather depend on YAML being dumped | Aaron Patterson | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | use index based substitution for bind parameters | Aaron Patterson | 2011-04-13 | 3 | -4/+4 |
| | |||||
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 8 | -8/+8 |
| | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`. | ||||
* | Deprecate defining scopes with a callable (lambda, proc, etc) via the scope ↵ | Jon Leighton | 2011-04-12 | 1 | -2/+60 |
| | | | | class method. Just define a class method yourself instead. | ||||
* | ActiveRecord::Base.scopes hash is not needed | Jon Leighton | 2011-04-12 | 2 | -18/+4 |
| | |||||
* | Evaluate default scopes at the last possible moment in order to avoid ↵ | Jon Leighton | 2011-04-12 | 5 | -16/+40 |
| | | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped. | ||||
* | Deprecated support for passing hashes and relations to default_scope, in ↵ | Jon Leighton | 2011-04-12 | 3 | -58/+95 |
| | | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details. | ||||
* | Removing the scope-caching which happens on association proxies, because the ↵ | Jon Leighton | 2011-04-12 | 2 | -14/+0 |
| | | | | query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs | ||||
* | stop using deprecated methods in arel | Aaron Patterson | 2011-04-11 | 1 | -2/+2 |
| | |||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 8 | -8/+8 |
| | | | | suggestion! | ||||
* | remove so many nested if statements | Aaron Patterson | 2011-04-11 | 1 | -9/+11 |
| |