- 05 9月, 2012 7 次提交
-
-
由 Xavier Noria 提交于
Fix a typo in AD
-
由 Robin Dupret 提交于
-
由 Rafael Mendonça França 提交于
Add an optional block to HashWithIndifferentAccess#update and #merge
-
由 Leo Cassarani 提交于
When a block is passed into the method, it will be invoked for each duplicated key, with the key in question and the two values as arguments. The value for the duplicated key in the receiver will be set to the return value of the block. This behaviour matches Ruby's long-standing implementation of Hash#update and is intended to provide a more consistent interface. HashWithIndifferentAccess#merge is also affected by the change, as it uses #update internally.
-
由 Rafael Mendonça França 提交于
Refactor `Mime::Type`
-
由 Aleksey Magusev 提交于
`parse` method performance improvements - ~27-33%: accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, , pronto/1.00.00, sslvpn/1.00.00.00, */*" Benchmark.measure{ 1_000_0.times { Mime::Type.parse(accept) }} old: 1.430000 0.000000 1.430000 ( 1.440977) new: 0.920000 0.000000 0.920000 ( 0.921813)
-
由 David Heinemeier Hansson 提交于
-
- 04 9月, 2012 8 次提交
-
-
由 David Heinemeier Hansson 提交于
Allow routing concerns to accept a callable
-
由 Xavier Noria 提交于
Users need to know the ultimate problem here is that AS was trying to autoload a constant and it failed.
-
由 Rafael Mendonça França 提交于
custom inheritance_column test refactoring
-
由 Yves Senn 提交于
All tests with a custom inheritance_column use the `Vegtable` model. The field ruby_type on the Company models is no longer needed
-
由 Yves Senn 提交于
previously the tests with and without a custom `inheritance_column` used the same models. Since the model then has both fields this can lead to false positives.
-
由 Ernie Miller 提交于
-
由 Ernie Miller 提交于
Also, add documentation for alternate usage.
-
由 Ernie Miller 提交于
This allows us to make alterations to the generated routes based on the scope of the current mapper, and otherwise allows us to move larger blocks of concerns out of the routes file, altogether.
-
- 03 9月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
#becomes works with configured inheritance_column
-
由 Yves Senn 提交于
I had to create a new table because I needed an STI table, which does not have both a "type" and a "custom_type" the test fails with: 1) Error: test_alt_becomes_works_with_sti(InheritanceTest): NoMethodError: undefined method `type=' for #<Cabbage id: 1, name: "my cucumber", custom_type: "Cucumber"> /Users/username/Projects/rails/activemodel/lib/active_model/attribute_methods.rb:432:in `method_missing' /Users/username/Projects/rails/activerecord/lib/active_record/attribute_methods.rb:100:in `method_missing' /Users/username/Projects/rails/activerecord/lib/active_record/persistence.rb:165:in `becomes' test/cases/inheritance_test.rb:134:in `test_becomes_works_with_sti' test/cases/inheritance_test.rb:140:in `test_alt_becomes_works_with_sti'
-
- 02 9月, 2012 13 次提交
-
-
由 Carlos Antonio da Silva 提交于
Fixed markup in Upgrading RoR guide [ci skip]
-
由 Carlos Antonio da Silva 提交于
Fix example code: use tasks instead of comments [ci skip]
-
由 Erik Behrends 提交于
-
由 Aldo "xoen" Giambelluca 提交于
There are two changes: - Using <ruby> syntax for unicode character routes example instead of <tt> since it causes single quotes to be transformed into inverted commas. This makes this required change more eye-catching. - Using <tt> for the j alias and related helpers as written in the documentation guidelines.
-
由 Aaron Patterson 提交于
Properly reset the session on reset_session
-
由 Andreas Loupasakis 提交于
Use load_for_write! to ensure a refresh of the session object. This way the new session_id and the empty data will be stored properly. E.g. in the case of the session cookie store this means that a new digest will be returned to the user.
-
由 Andreas Loupasakis 提交于
-
由 Andreas Loupasakis 提交于
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Xavier Noria 提交于
The app generator is not generally run under bundler, but the Bundler constant is used here. In particular you cannot create --dev apps without this.
-
由 Piotr Sarnacki 提交于
-
- 01 9月, 2012 10 次提交
-
-
由 Piotr Sarnacki 提交于
ActionView decoupling and sprockets-rails tests fail
-
由 Dmitry Vorotilin 提交于
Method invalid_asset_host! was delegated to controller but sprockets compile assets in their own scope without controller. And if we set asset_host with second parameter it should raise error through invalid_asset_host!. But since controller is nil it cannot be reached.
-
由 Sven Kraeuter | 5v3n 提交于
-
由 Steve Klabnik 提交于
Fixes #7478
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
Option to run `bundle install` after generating new appplication was added recently to rails. Since introduction, it contained a subtle bug that caused it to use `Gemfile` from current directory (if it exists) rather than from generated directory. This also accidentaly caused railties tests to work without any problems - after generating test app it just used `Gemfile` from the repository, rather than the one in generated app. After fixing the bug mentioned above, this of course broke. The easiest way to bypass that is to not generate a `Gemfile` for test application - with such setup Bundler will just use first available `Gemfile` in one of the parent directories.
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
The cause of the previous revert was bug in bundler that made it hard to make railties test work. Fix for bundler was recently pushed to github, so now we can safely get back to the original commit. This reverts commit 0f5cc34a.
-
由 Steve Klabnik 提交于
SessionHash isn't a thing, and tenses are wrong.
-
由 Pratik Naik 提交于
-