Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed Dec 28, 2012
2 parents 90397de + 896a049 commit 427544e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions guides/source/active_record_validations.md
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion guides/source/active_support_instrumentation.md
Expand Up @@ -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)
Expand Down

0 comments on commit 427544e

Please sign in to comment.