- 09 12月, 2012 7 次提交
-
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
* Fix example queries * Remove doc entries of where.like/not_like. * Remove :chain from where.not related docs. To me that's an implementation detail and we don't expect people to use where(:chain).not.
-
由 Carlos Antonio da Silva 提交于
Fix #assert_instance_method to also assert indented methods
-
- 08 12月, 2012 33 次提交
-
-
由 Rafael Mendonça França 提交于
use _action callbacks in actionmailer
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Carlos Antonio da Silva 提交于
Use attr_accessor for Rails.{application,cache,logger}
-
由 Carlos Antonio da Silva 提交于
Update AR Changelog with correct example using includes [ci skip]
-
由 Caike Souza 提交于
These queries don't seem to work without the includes clause. [ci skip]
-
由 Carlos Antonio da Silva 提交于
Update guides to use _action callbacks [ci skip]
-
由 Carlos Antonio da Silva 提交于
use :only instead of :except callback option in the controller template
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
Mailers are always async now, and we already discuss queueing lower down in the guide.
-
由 Steve Klabnik 提交于
There's no reason for guides to reference old behaviors. They should be current as of the versions of Rails that they ship with, and including older information just clutters thing. I discussed this change with @fxn and he agrees.
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Claudio B. 提交于
Fix a typo in rdoc (*expect* for *except*)
-
由 Francesco Rodriguez 提交于
As [Security Guide](http://edgeguides.rubyonrails.org/security.html#whitelists-versus-blacklists) says, it's better to use `before_filter only: []` instead of `except: []` so we don't forget to turn the filter off for newly added actions.
-
由 Katie Oldaker 提交于
-
由 Xavier Noria 提交于
Actionize2
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Xavier Noria 提交于
Actionize: Use `_action` callbacks in documentation and code
-
由 Jeremy Kemper 提交于
Rename ActiveSupport::BasicObject to ActiveSupport::ProxyObject
-
由 Francesco Rodriguez 提交于
-
由 David Heinemeier Hansson 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
AS::BasicObject is used for proxy classes. Let's give it a less concerning name. Also, it avoids the confusion with Ruby's Basic Object.
-
由 Carlos Antonio da Silva 提交于
The real win with these chain methods is where.not, that takes care of different scenarios in a graceful way, for instance when the given value is nil. where("author.id != ?", author_to_ignore.id) where.not("author.id", author_to_ignore.id) Both where.like and where.not_like compared to the SQL versions doesn't seem to give us that much: Post.where("title LIKE 'ruby on%'") Post.where.like(title: 'ruby on%'") Post.where("title NOT LIKE 'ruby on%'") Post.where.not_like(title: 'ruby on%'") Thus Rails is adding where.not, but not where.like/not_like and others.
-
由 David Heinemeier Hansson 提交于
-
由 Max Katz 提交于
-
由 David Heinemeier Hansson 提交于
-
由 Katie Oldaker 提交于
-
由 Carlos Antonio da Silva 提交于
Document the types of arguments accepted by AR#not
-
由 claudiob 提交于
This commit stems from https://github.com/rails/rails/pull/8332#issuecomment-11127957 Since the formats in which conditions can be passed to `not` differ from the formats in which conditions can be passed to `like` and `not_like`, then I think it's worth adding rdoc and tests to show this behavior
-