提交 427544ed 编写于 作者: V Vijay Dev

Merge branch 'master' of github.com:lifo/docrails

......@@ -656,8 +656,6 @@ class Coffee < ActiveRecord::Base
end
```
TIP: `:allow_nil` is ignored by the presence validator.
### `:allow_blank`
The `:allow_blank` option is similar to the `:allow_nil` option. This option
......@@ -673,8 +671,6 @@ Topic.create("title" => "").valid? # => true
Topic.create("title" => nil).valid? # => true
```
TIP: `:allow_blank` is ignored by the presence validator.
### `:message`
As you've already seen, the `:message` option lets you specify the message that
......
......@@ -432,7 +432,7 @@ from block args like this:
```ruby
ActiveSupport::Notifications.subscribe "process_action.action_controller" do |*args|
event = ActiveSupport::Notification::Event.new args
event = ActiveSupport::Notifications::Event.new *args
event.name # => "process_action.action_controller"
event.duration # => 10 (in milliseconds)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册