- 24 3月, 2012 6 次提交
-
-
由 Aaron Patterson 提交于
Return an actual boolean from xml_http_request?
-
由 Tim Pope 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
fixes #5521
-
由 Aaron Patterson 提交于
Fix environment support for rails server, and match interface of rails console
-
由 José Valim 提交于
Remove code duplication
-
- 23 3月, 2012 9 次提交
-
-
由 Piotr Sarnacki 提交于
use the new scope syntax on the tests to avoid DEPRECATION WARNINGS.
-
由 Rafael Mendonça França 提交于
-
由 José Valim 提交于
Remove ActiveModel::Naming#partial_path
-
由 Piotr Sarnacki 提交于
Before it was handled by Proc.bind, but since Proc.bind has been deprecated, this is no longer the case and returned handler needs to match rescuer.
-
由 Piotr Sarnacki 提交于
Fixed missing space bug introduces in rails/rails@9299bfd
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
deprecate Proc#bind that can cause symbol memory leak
-
由 Sergey Nartimov 提交于
-
由 schneems 提交于
rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
-
- 22 3月, 2012 14 次提交
-
-
由 Anton Lindqvist 提交于
-
由 Piotr Sarnacki 提交于
Avoid another blank line in generated migration and remove assertion as per @spastorino request
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Marcelo Silveira 提交于
-
由 Jon Leighton 提交于
Don't use this: scope :red, where(color: 'red') default_scope where(color: 'red') Use this: scope :red, -> { where(color: 'red') } default_scope { where(color: 'red') } The former has numerous issues. It is a common newbie gotcha to do the following: scope :recent, where(published_at: Time.now - 2.weeks) Or a more subtle variant: scope :recent, -> { where(published_at: Time.now - 2.weeks) } scope :recent_red, recent.where(color: 'red') Eager scopes are also very complex to implement within Active Record, and there are still bugs. For example, the following does not do what you expect: scope :remove_conditions, except(:where) where(...).remove_conditions # => still has conditions
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
scope is syntactic sugar for defining a class method. Ruby allows redefining methods but emits a warning when run with -w. So let's not implement our own logic for this. Users should run with -w if they want to be warned about redefined methods.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Aaron Patterson 提交于
-
- 21 3月, 2012 9 次提交
-
-
由 José Valim 提交于
Remove blank line from generated migration
-
由 José Valim 提交于
Fix adding/removing field's index when generating migration
-
由 Travis Jeffery 提交于
When generating a migration that removes a field with an index, the down will add both the field and its index.
-
由 schneems 提交于
When launching rails server from the command line with a rails environment specified such as `rails server RAILS_ENV=production` an error would occur since rails will try to use `RAILS_ENV=production` as it's server. When launching rails with a specified server such as thin `rails server thin RAILS_ENV=production` no error will be thrown, but rails will not start up in the specified environment. This fixes both of those cases
-
由 Marcelo Silveira 提交于
-
由 David Heinemeier Hansson 提交于
We dont need to merge in the parameters as thats all being reset by the rack headers (and its causing problems for Strong Parameters attempt of wrapping request.parameters because it will change in testing)
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 20 3月, 2012 2 次提交
-
-
由 Vijay Dev 提交于
-
由 Xavier Noria 提交于
Add missing require
-