- 08 7月, 2012 2 次提交
-
-
由 @schneems and @mattt 提交于
this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties.
-
由 schneems 提交于
If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page.
-
- 07 7月, 2012 31 次提交
-
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Carlos Antonio da Silva 提交于
Introduced in 75b340d1
-
由 Jon Leighton 提交于
A test was failing due to the way that Relation#inspect causes association proxies to ignore unsaved records added to the association. This is fixed by simply calling to_a and letting to_a figure out how to get the records (which, in the case of associations, takes into account new records). I think it is acceptable to do this rather than limiting the query at the database level: * It's what we've done in all released Rails versions up to this point * The goal of the limit is to not flood the console with output - this is the problem we're targeting, rather than the actual loading of the records from the database * You probably want to do something with those records later anyway, otherwise you wouldn't have built a relation for them.
-
由 Carlos Antonio da Silva 提交于
Small refactoring of as_json method
-
由 Carlos Antonio da Silva 提交于
Allow to register database tasks from different adapters
-
由 Carlos Antonio da Silva 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 José Valim 提交于
Allow people to register their own flash types.
-
由 kennyj 提交于
-
由 José Valim 提交于
Engine table name prefix generator fix
-
由 José Valim 提交于
Remove unused code.
-
由 José Valim 提交于
Added *instance_writer: false* to stored/serialized attributes.
-
由 José Valim 提交于
-
由 José Valim 提交于
Limit the number of records in Relation#inspect
-
由 kennyj 提交于
-
由 kennyj 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
[ci skip]
-
由 Oscar Del Ben 提交于
-
由 Carlos Antonio da Silva 提交于
Introduce config.action_mailer.default_options= Allows to easily set :from, :replay_to, etc. options in config/application.rb using simple syntax: config.action_mailer.default_options = { from: "no-replay@example.org" } Closes #6747
-
由 Carlos Antonio da Silva 提交于
update test_help to config properly turn natural language option
-
由 Francesco Rodriguez 提交于
Last versions of Turn don't monkey patch MiniTest to setup the natural language option. Here is an [example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3). This patches the following behaviour: $ rake test:units `<top (required)>': undefined method `use_natural_language_case_names=' for MiniTest::Unit:Class (NoMethodError)
-
由 Wojciech Wnętrzak 提交于
-
由 Wojciech Wnętrzak 提交于
-
由 José Valim 提交于
Fix: Mime type names conflict with Object methods
-
由 Mircea Pricop 提交于
Assuming the type ":touch", Collector.new was calling send(:touch), which instead of triggering method_missing and generating a new collector method, actually invoked the private method `touch` inherited from Object. By generating the method for each mime type as it is registered, the private methods on Object can never be reached by `send`, because the `Collector` will have them before `send` is called on it. To do this, a callback mechanism was added to Mime::Type This allows someone to add a callback for whenever a new mime type is registered. The callback then gets called with the new mime as a parameter. This is then used in AbstractController::Collector to generate new collector methods after each mime is registered.
-
由 Damien Mathieu 提交于
While it's interesting to have the results array, it can make a console or a webpage freeze if there are a lot of them. So this limits the number of records displayed in #inspect to 10 and tells how much were effectively found.
-
- 06 7月, 2012 7 次提交
-
-
由 Rafael Mendonça França 提交于
Disable query cache for lock queries
-
由 Damir Zekic 提交于
Fixes #867
-
由 Carlos Antonio da Silva 提交于
See 07314e64. Also fix some tabs in AR Changelog.
-
由 Carlos Antonio da Silva 提交于
-
由 Jon Leighton 提交于
The reason for removing the previous implementation of `#inspect` was that it hid from you that you were dealing with a `Relation` rather than an `Array`. But it is still useful to be able to see the records, particularly if you're writing something like the following in tests: assert_equal [foo], Post.where(:bar) If the assertion fails, you want to see what records were actually loaded. So this implementation makes it clear that you've got a `Relation`, but also shows your records.
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-