Aaron Patterson
bee3b7f937
Only use valid mime type symbols as cache keys
...
CVE-2013-6414
2013-11-30 17:03:18 -08:00
Aaron Patterson
5f844d6cc6
Merge branch '3-2-sec' into 3-2-stable
...
* 3-2-sec:
updating changelogs
bumping to 3.2.15
bumping to rc3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
bumping to rc2
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
bumping version to 3.2.15.rc1
Remove the use of String#% when formatting durations in log messages
Conflicts:
activerecord/CHANGELOG.md
2013-10-16 10:20:36 -07:00
Aaron Patterson
538f8ba0c1
updating changelogs
2013-10-16 10:01:01 -07:00
Aaron Patterson
2a0c4403fd
bumping to 3.2.15
2013-10-15 11:48:53 -07:00
Aaron Patterson
eb8807e84d
Merge branch '3-2-15' into 3-2-sec
...
* 3-2-15:
bumping to rc3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
bumping to rc2
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
bumping version to 3.2.15.rc1
Fix STI scopes using benolee's suggestion. Fixes #11939
2013-10-15 11:15:08 -07:00
Aaron Patterson
e3abd78ee5
bumping to rc3
2013-10-11 14:16:06 -07:00
Rafael Mendonça França
38aefa51c3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
...
This reverts commit ccd11d5891 , reversing
changes made to 54c05acdba .
Reason: This caused a regression when the associated record is created
in a before_create callback. See
https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:55:12 -03:00
Rafael Mendonça França
fbc69ac560
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
...
This reverts commit 7ed5bdc834 , reversing
changes made to 31c79e291f .
Reason: this caused a regression when the associated record is creted in
a before_create callback.
See https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:55:07 -03:00
Rafael Mendonça França
6a185aa0a8
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
...
This reverts commit ccd11d5891 , reversing
changes made to 54c05acdba .
Reason: This caused a regression when the associated record is created
in a before_create callback. See
https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:41:37 -03:00
Rafael Mendonça França
9639f65af5
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
...
This reverts commit 7ed5bdc834 , reversing
changes made to 31c79e291f .
Reason: this caused a regression when the associated record is creted in
a before_create callback.
See https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:40:24 -03:00
Aaron Patterson
5ede19b772
bumping to rc2
2013-10-04 13:46:35 -07:00
Rafael Mendonça França
73dff26125
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
...
Add inverse of add target
2013-10-04 13:58:36 -03:00
Rafael Mendonça França
7ed5bdc834
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
...
Add inverse of add target
2013-10-04 09:57:17 -07:00
Arthur Neves
fc59e997d7
add regression test for set_inverse_instance on add_to_target
2013-10-04 11:15:55 -04:00
Arthur Neves
655396cc10
Add back set_inverse_instance on .add_to_target
...
We must have it in there too, so when an existent record is being concat to another,
we will have the inverse relation.
2013-10-04 10:15:22 -04:00
Aaron Patterson
5e277c8208
bumping version to 3.2.15.rc1
2013-10-03 11:52:44 -07:00
Aaron Patterson
31c79e291f
Merge pull request #12084 from Ben-M/3-2-stable
...
Fix STI scopes using benolee's suggestion. Fixes #11939
2013-10-03 11:14:19 -07:00
Aaron Patterson
befeeb2d0a
Merge branch '3-2-stable' into 3-2-sec
...
* 3-2-stable:
make sure both headers are set before checking for ip spoofing
Move set_inverse_instance to association.build_record
2013-10-03 10:27:58 -07:00
Andrew White
83c4b0a7f9
Merge pull request #12410 from tamird/fix-ip-spoof-errors
...
Fix ip spoof errors
2013-10-01 01:28:07 -07:00
Tamir Duberstein
85106decc4
make sure both headers are set before checking for ip spoofing
2013-10-01 01:26:07 -07:00
Michael Koziarski
5aee516b5e
Remove the use of String#% when formatting durations in log messages
...
This avoids potential format string vulnerabilities where user-provided
data is interpolated into the log message before String#% is called.
2013-09-30 14:42:11 -07:00
Rafael Mendonça França
ccd11d5891
Merge pull request #12413 from arthurnn/inverse_of_on_build
...
Inverse of on build
2013-09-30 14:38:58 -07:00
Arthur Neves
679860400f
Move set_inverse_instance to association.build_record
...
[fixes #10371 ]
2013-09-30 17:20:26 -04:00
Rafael Mendonça França
54c05acdba
Merge pull request #12375 from arthurnn/inverse_after_find_or_initialize
...
Inverse after find or initialize
2013-09-28 17:22:01 -07:00
Rafael Mendonça França
50a96446bc
Use Ruby 1.8 hash syntax
2013-09-28 20:56:15 -03:00
Arthur Neves
fed6ac9c66
fix inverse_of when find_or_initialize_by_*
...
inverse_of relation was not being set when calling find_or_initialize_by_ and the entry was
found on the db.
2013-09-26 14:55:10 -04:00
Rafael Mendonça França
e82cecae35
Merge pull request #12364 from arthurnn/test_fix_validate
...
Fix query counters when testing with IdentityMap on 3.2
2013-09-25 19:08:14 -07:00
Arthur Neves
e1bb9fc671
on tests: dont always touch firm on validate
2013-09-25 19:50:42 -04:00
Rafael Mendonça França
fdc3c08e55
Merge pull request #12359 from arthurnn/inverse_on_callbacks
...
Make sure inverse_of is visible on the has_many callbacks
Conflicts:
activerecord/CHANGELOG.md
activerecord/test/models/company.rb
2013-09-25 16:31:00 -03:00
Rafael Mendonça França
c539c684aa
Merge pull request #12196 from h-lame/fix-activesupport-cache-filestore-cleanup
...
Fix FileStore#cleanup to no longer rely on missing each_key method
Conflicts:
activesupport/CHANGELOG.md
activesupport/test/caching_test.rb
2013-09-12 16:04:10 -03:00
Eugene Kalenkovich
c9642e31b1
Fix FinderMethods#last unscoped primary key
...
Fixes table.joins(:relation).last(N) breaking on sqlite
Conflicts:
activerecord/CHANGELOG.md
activerecord/test/cases/finder_test.rb
2013-09-12 14:08:02 -03:00
Steve Klabnik
cff8d1d24d
Merge pull request #9368 from CrowdFlower/3-2-stable
...
PR #5219 backported to 3-2
2013-09-10 13:23:57 -07:00
Santiago Pastorino
143e009546
Merge pull request #12176 from arthurnn/ar32_schema_cache
...
on SchemaCache use the connection getter instead of the obj given
2013-09-10 07:14:52 -07:00
Arthur Neves
f0301e3de6
on SchemaCache use the connection getter instead of the obj given
2013-09-09 13:47:07 -04:00
Brian Hahn
03ac291526
pass the extra params to the rack test environment so that routes with block constraints have access
2013-09-06 11:08:41 -07:00
Ben Maraney
cf1904f65b
Fix STI scopes using benolee's suggestion. Fixes #11939
2013-08-30 12:58:41 +03:00
Aaron Patterson
59a3561045
Merge pull request #12048 from tjouan/app_generator-bin_perms-umask
...
Comply with current umask when generating new app
Conflicts:
railties/lib/rails/generators/rails/app/app_generator.rb
2013-08-27 14:06:13 -07:00
Rafael Mendonça França
e0fc5da353
Merge pull request #12006 from kassio/11605-render-with-context-format
...
Render with context format
2013-08-25 19:31:42 -07:00
Kassio Borges
424a5a7d46
fix issue #11605
2013-08-24 15:24:36 -03:00
Eugene Kalenkovich
adf6e30e3a
Fix 1.8.7 incompatible respond_to_missing
2013-08-18 16:46:44 -05:00
Guillermo Iguaran
6d9050bae4
Merge pull request #11930 from UncleGene/ties_test
...
Fix test incompatible with 1.8.7
2013-08-18 11:27:01 -07:00
Eugene Kalenkovich
93f1a7219b
Fix test incompatible with 1.8.7
2013-08-18 11:20:31 -07:00
Teng Siong Ong
946ad5d9f9
Make rake doc:guides works again. Fix #10384 .
...
Conflicts:
railties/guides/rails_guides.rb
railties/lib/rails/tasks/documentation.rake
2013-08-05 16:02:17 -04:00
Rafael Mendonça França
5f8a7d1d4d
Merge pull request #11765 from kassio/load-fixtures-from-linked-folder
...
Load fixtures from linked folder
2013-08-05 12:56:31 -07:00
Kassio Borges
0ec701d50b
Load fixtures from linked folders
2013-08-05 16:52:12 -03:00
Rafael Mendonça França
773eca0e12
Move changelog entry to the top [ci skip]
2013-07-30 21:59:10 -03:00
Rafael Mendonça França
1463fbeafb
Fix broken test
...
quote_value is called on the object not the class
2013-07-24 16:21:37 -03:00
Ben Woosley
b4dea61a42
Tidy up the "Specified column type for quote_value" changes
...
This includes fixing typos in changelog, removing a deprecated
mocha/setup test require, and preferring the `column_for_attribute`
accessor over direct access to the columns_hash in the new code.
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/locking/optimistic.rb
2013-07-24 13:20:30 -03:00
Alfred Wong
33e1604b3e
Specified column type for quote_value
...
When calling quote_value the underlying connection sometimes requires
more information about the column to properly return the correct quoted
value.
I ran into this issue when using optimistic locking in JRuby and the
activerecord-jdbcmssql-adapter. In SQLSever 2000, we aren't allowed to
insert a integer into a NVARCHAR column type so we need to format it as
N'3' if we want to insert into the NVARCHAR type. Unfortuantely, without
the column type being passed the connection adapter cannot properly return
the correct quote value because it doesn't know to return N'3' or '3'.
This patch is fairly straight forward where it just passes in the column
type into the quote_value, as it already has the ability to take in the column,
so it can properly handle at the connection level.
I've added the tests required to make sure that the quote_value method
is being passed the column type so that the underlying connection can
determine how to quote the value.
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/locking/optimistic.rb
2013-07-24 13:18:21 -03:00
Rafael Mendonça França
c4b93f57e1
Merge pull request #11563 from 90yukke/fix-nomethoderror-on-non-attribute-equalities
...
Fix merge error when Equality LHS is non-attribute.
2013-07-23 05:29:17 -07:00