- 22 2月, 2017 22 次提交
-
-
由 Andrew White 提交于
Bundler 1.14.5 moved to lazily loading 'rubygems/spec_fetcher' which revealed some missing requires from the JSON encoding test file.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Preload to_datetime before freezing a TimeWithZone instance
-
由 Adam Rice 提交于
-
由 Jon Moss 提交于
remove needless extension from system test example [ci skip]
-
由 yuuji.yaginuma 提交于
-
由 Jon Moss 提交于
[doc] Fix wrong class name in testing.md
-
由 Celso Fernandes 提交于
As the specified command is `rails g system_test articles`, the generated class name is `ArticlesTest`, not `UsersTest`
-
由 Matthew Draper 提交于
Allow 3-level DB configs to group connections by environment
-
由 Rafael França 提交于
Add CHANGELOG entry for #27384 and #27762
-
由 Kasper Timm Hansen 提交于
Use double quoted strings, come down hard on some typos.
-
由 Kasper Timm Hansen 提交于
-
由 Andrew White 提交于
Implement custom url helpers and polymorphic mapping
-
由 Matthew Draper 提交于
[Arthur Nogueira Neves & Matthew Draper]
-
由 Jon Moss 提交于
[ci skip]
-
由 Andrew White 提交于
The column information for the testings table was being cached so clear the cache in the test teardown.
-
由 Jon Moss 提交于
[ci skip]
-
由 Jon Moss 提交于
[ci skip]
-
由 Rafael Mendonça França 提交于
-
由 Jon Moss 提交于
[ci skip]
-
由 David Heinemeier Hansson 提交于
-
由 eileencodes 提交于
For applications that are upgrading or applications that are choosing to skip system testing Capbyara will not be available. SystemTestCase and friends shoud only be loaded if Capbyara is defined. Fixes #28094
-
- 21 2月, 2017 18 次提交
-
-
由 Andrew White 提交于
Use a separate method called `resolve` for the custom polymorphic mapping to clarify the API.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Using `undef_method` means that when a route is removed any other implementations of that method in the ancestor chain are inaccessible so instead use `remove_method` which restores access to the ancestor.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Allow the use of `direct` to specify custom mappings for polymorphic_url, e.g: resource :basket direct(class: "Basket") { [:basket] } This will then generate the following: >> link_to "Basket", @basket => <a href="/basket">Basket</a> More importantly it will generate the correct url when used with `form_for`. Fixes #1769.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Allow the definition of custom url helpers that will be available automatically wherever standard url helpers are available. The current solution is to create helper methods in ApplicationHelper or some other helper module and this isn't a great solution since the url helper module can be called directly or included in another class which doesn't include the normal helper modules. Reference #22512.
-
由 Andrew White 提交于
The singleton url_for on Rails.application.routes.url_helpers isn't the same as the url_for you get when you include the module in your class as the latter has support for polymorphic style routes, etc. whereas the former accepts only a hash and is the underlying implementation defined on ActionDispatch::Routing::RouteSet. This commit changes the singleton method to call through a proxy instance so that it gets the full range of features specified in the documentation for url_for.
-
由 Robin Dupret 提交于
-
由 Guillermo Iguaran 提交于
Fix `define_attribute_method` with Symbol in AR
-
由 Prem Sichanugrist 提交于
This issue is only appear when you try to call `define_attribute_method` and passing a symbol in Active Record. It does not appear in isolation in Active Model itself. Before this patch, when you run `User.define_attribute_method :foo`, you will get: NoMethodError: undefined method `unpack' for :foo:Symbol from activerecord/lib/active_record/attribute_methods/read.rb:28:in `define_method_attribute' from activerecord/lib/active_record/attribute_methods/primary_key.rb:61:in `define_method_attribute' from activemodel/lib/active_model/attribute_methods.rb:292:in `block in define_attribute_method' from activemodel/lib/active_model/attribute_methods.rb:285:in `each' from activemodel/lib/active_model/attribute_methods.rb:285:in `define_attribute_method' This patch contains both a fix in Active Model and a test in Active Record for this error.
-