- 23 5月, 2012 4 次提交
-
-
由 Jeremy Kemper 提交于
Add HTML5 color and date/time inputs
-
由 Rafael Mendonça França 提交于
Fixed typo new_defautls -> new_defaults.
-
由 Philip Arndt 提交于
* Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults * Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
-
由 Rafael Mendonça França 提交于
This reverts commit d2901f0f, reversing changes made to 525839fd. Conflicts: activerecord/test/cases/connection_pool_test.rb Reason: This change broke the build (http://travis-ci.org/#!/rails/rails/builds/1391490) and we don't have any solution until now. I asked the author to try to fix it and open a new pull request.
-
- 22 5月, 2012 36 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Jeremy Kemper 提交于
Move root method at TOP of routes file
-
由 Santiago Pastorino 提交于
-
由 Jeremy Kemper 提交于
Support migrating from Hash to HashWithIndifferentAccess for accessing attributes.
-
由 Gaurish Sharma 提交于
Made the change as per the following text in routing guide:- "You should put the root route at the top of the file, because it is the most popular route and should be matched first." However, if root is best left at bottom. We will change to fix that text
-
由 Andrey Voronkov 提交于
In order to make migration from 3.x apps easier, we should try to convert Hash instances to HashWithIndifferentAccess, to allow accessing values with both symbol and a string. This is follow up to changes in 3c0bf043.
-
由 José Valim 提交于
refactor lazy_load_hooks load position, fix #6435
-
由 Jan Xie 提交于
-
由 José Valim 提交于
Use new hash syntax for generators gem method
-
由 Alexey Vakhov 提交于
The Gemfile of new application uses ruby 1.9 hashes. Gem method of generators should use them too. It prevents from mixing two kinds of syntax in one file.
-
由 Piotr Sarnacki 提交于
remove useless require
-
由 Piotr Sarnacki 提交于
Using require in development mode will prevent required files from reloading, even if they're changed. In order to keep namespaced application_controller reloadable, we need to use require_dependency instead of require.
-
由 Jan Xie 提交于
-
由 Piotr Sarnacki 提交于
Rails db console improvements
-
由 Alexey Vakhov 提交于
Ruby tries to use '-h' as short version of '--header' by default https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1372-1381. To force `rails db -h` prints an usage message we should add the `-h` options explicitly.
-
由 Alexey Vakhov 提交于
Rails uses sqlit3 db file with a path relative to the rails root. It allows to execute server not from rails root only. For example you can fire `./spec/dummy/script/rails s` to start dummy application server if you develop some engine gem. Now the `rails db` command uses relative paths also and you can explore your dummy db via `./spec/dummy/script/rails db` command.
-
由 Piotr Sarnacki 提交于
Restore frozen state on rollback, fixes #6417
-
由 Michael Koziarski 提交于
#read_entry in ActiveSupport::Cache::FileStore should log details of the exception when an exception is thrown
-
由 Aaron Patterson 提交于
-
由 Carlos Antonio da Silva 提交于
Fix bug when Rails.application is defined but is nil. See #881
-
由 Godfrey Chan 提交于
Currently, when saving a frozen record, an exception would be thrown which causes a rollback. However, there is a bug in active record that "defrost" the record as a side effect: >> t = Topic.new => #<Topic id: nil, ...> >> t.freeze => #<Topic id: nil, ...> >> t.save RuntimeError: can't modify a frozen Hash >> t.frozen? => false >> t.save => true This patch fixes the bug by explictly restoring the frozen state on the attributes Hash after every rollback.
-
由 Carlos Antonio da Silva 提交于
These variables were issuing some "not used" warnings.
-
由 Carlos Antonio da Silva 提交于
Only constantize class_name once.
-
由 Carlos Antonio da Silva 提交于
Add instance_accessor option to class_attribute
-
由 Alexey Vakhov 提交于
-
由 Carlos Galdino 提交于
The input types added are: - input[type="month"] - input[type="week"] - input[type="datetime"] - input[type="datetime-local"]
-
由 Carlos Galdino 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 José Valim 提交于
This reverts commit 254c0428, reversing changes made to 513a0525.
-
由 Aaron Patterson 提交于
Resolver concurrency fix
-
由 Tom Clarke 提交于
In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
-
由 Tom Clarke 提交于
The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
-
由 Aaron Patterson 提交于
When a route references a missing controller, raise ActionController::RoutingError with clearer message
-
由 Aaron Patterson 提交于
Make connection pool fair with respect to waiting threads.
-
由 Aaron Patterson 提交于
allow the :converter Proc form composed_of to return nil
-
由 Jeremy Kemper 提交于
Refactoring: just turn unless/else into if/else
-