Skip to content

Commit

Permalink
Changed some comment references from :allow_nil to :nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Gentry committed Sep 3, 2009
1 parent d94d9d1 commit 3237af6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions remarkable_datamapper/lib/remarkable_datamapper/base.rb
Expand Up @@ -5,11 +5,11 @@ class Base < Remarkable::Base

# Provides a way to send options to all DataMapper matchers.
#
# validates_presence_of(:name).with_options(:allow_nil => false)
# validates_presence_of(:name).with_options(:nullable => false)
#
# Is equivalent to:
#
# validates_presence_of(:name, :allow_nil => false)
# validates_presence_of(:name, :nullable => false)
#
def with_options(opts={})
@options.merge!(opts)
Expand Down Expand Up @@ -61,10 +61,10 @@ def assert_good_or_bad_if_key(key, value, message_key=:message) #:nodoc:
end
end

# Default allow_nil? validation. It accepts the message_key which is
# Default nullable? validation. It accepts the message_key which is
# the key which contain the message in @options.
#
# It also gets an allow_nil message on remarkable.data_mapper.allow_nil
# It also gets an nullable message on remarkable.data_mapper.nullable
# to be used as default.
#
def nullable?(message_key=:message) #:nodoc:
Expand Down

0 comments on commit 3237af6

Please sign in to comment.