aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* requiring a newer version of the mysql2 gemAaron Patterson2011-04-271-0/+1
|
* Fix #update_attributes api format errorSebastian Martinez2011-04-261-1/+1
|
* Merged pull request #307 from arunagw/master.Aaron Patterson2011-04-261-1/+1
|\ | | | | jdbcpostgresql support added into template.
| * Database creation for jdbcpostgresql #jrubyArun Agrawal2011-04-261-1/+1
| |
* | AR update_attributes api is updated to reflect the addition of assign_attributesJosh Kalderimis2011-04-261-4/+9
| |
* | Merged pull request #310 from beanieboi/master.Aaron Patterson2011-04-261-1/+10
|\ \ | | | | | | Added support for tsvector datatype in postgres
| * | Added tsvector Datatype SupportBenjamin Fritsch2011-04-261-1/+10
| | | | | | | | | Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql
* | | Merged pull request #308 from joshk/assign_attributes.José Valim2011-04-252-11/+16
|\ \ \ | | | | | | | | deprecated the use of guard_protected_attributes with attributes= in AR
| * | | deprecated the use of the guard_protected_attributes argument with ↵Josh Kalderimis2011-04-252-11/+16
| | |/ | |/| | | | | | | attributes= in AR in favor of assign_attributes(attrs, :without_protection => true)
* / | Do not use SQL LIKE operator for case insensitive uniqueness validationRaimonds Simanovskis2011-04-251-2/+3
|/ / | | | | It can result in wrong results if values contain special % or _ characters. It is safer to use SQL LOWER function and compare for equality.
* | Fixed error when running db:create with jdbcmysqlRashmi Yadav2011-04-252-1/+23
| |
* | Use existing #empty_insert_statement_value for an insert with no columns.Ken Collins2011-04-243-9/+1
| |
* | added config.active_record.whitelist_attributes which creates an empty ↵Josh Kalderimis2011-04-241-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 Kalderimis2011-04-241-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/docrailsXavier Noria2011-04-233-8/+24
|\ \ | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * | copy-edits 0e2644cXavier Noria2011-04-233-3/+3
| | |
| * | copy-edits e2656e0Xavier Noria2011-04-232-3/+3
| | |
| * | copy-edits 3d45964Xavier Noria2011-04-232-2/+2
| | |
| * | Added docs for #drop_database on MySQL adapterSebastian Martinez2011-04-222-1/+5
| | |
| * | Added docs for #disconnect! on adaptersSebastian Martinez2011-04-223-1/+6
| | |
| * | Added missing docs for clear_cache! on adaptersSebastian Martinez2011-04-223-0/+3
| | |
| * | Added missing docs for +supports_primary_key?+ on some adaptersSebastian Martinez2011-04-222-0/+2
| | |
| * | Added missing docs for +support_migrations?+ on some adaptersSebastian Martinez2011-04-222-0/+2
| | |
| * | Have a more connection specific rdoc for +supports_statement_cache?+Sebastian Martinez2011-04-223-6/+6
| | |
| * | Removed ON() on distinct commentSebastian Martinez2011-04-221-1/+1
| | |
* | | split indexes and column types on money / binary iterationAaron Patterson2011-04-221-6/+5
| | |
* | | fetch result row arrays from pg in C and return early if there are no money ↵Aaron Patterson2011-04-221-31/+36
| | | | | | | | | | | | or binary columns. :heart:
* | | set the backtrace to prevent AR exceptions from lying to usAaron Patterson2011-04-221-1/+3
| | |
* | | removing incorrect comment and string concatenationAaron Patterson2011-04-221-4/+1
| | |
* | | The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in ↵Ken Collins2011-04-231-1/+1
| | | | | | | | | | | | #insert to match replacement in #exec_query.
* | | Move #exec_insert to abstract adapter's database statements.Ken Collins2011-04-224-12/+7
| |/ |/|
* | stop using distinct on for the unique id queries. [#6450 state:resolved]Aaron Patterson2011-04-212-1/+3
|/
* Avoid define_method if possible.José Valim2011-04-192-2/+2
|
* Bring back support for passing a callable object to the default_scope macro. ↵Jon Leighton2011-04-181-0/+12
| | | | You can also just use a block.
* Un-deprecate using 'default_scope' as a macro, but if you are calling the ↵Jon Leighton2011-04-181-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 Leighton2011-04-171-2/+1
| | | | actually working out how to fix it)
* Bring back some bits of documentation for scopes which were removed as part ↵Jon Leighton2011-04-171-1/+29
| | | | of the reversion in 256b363
* Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via ↵Jon Leighton2011-04-171-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 Leighton2011-04-151-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 Leighton2011-04-151-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 Leighton2011-04-151-7/+4
| | | | sure the underscored version is actually generated
* sort insert columns for better cache hitsAaron Patterson2011-04-141-1/+1
|
* refactoring inserts to use the same method on the connectionAaron Patterson2011-04-141-21/+16
|
* mimic prepared statements in the exec_insert for mysql2Aaron Patterson2011-04-141-0/+11
|
* mysql type cast should return integers when typecasting true / falseAaron Patterson2011-04-141-0/+6
|
* using the database adapter to typecast before executing prepared statementAaron Patterson2011-04-142-2/+14
|
* inserting big decimals as strings works consistently among dbs, so use ↵Aaron Patterson2011-04-141-1/+1
| | | | string form
* insert statements are prepared, but values are not escaped properlyAaron Patterson2011-04-145-8/+64
|
* adding a type cast method for prepared statementsAaron Patterson2011-04-142-1/+37
|
* Extract the constraint-building for joins in JoinAssociation into a separate ↵Jon Leighton2011-04-141-8/+14
| | | | method to make it easy to change/override (requested by Ernie Miller so that MetaWhere can add to it easily)