Skip to content

Commit

Permalink
Keep consistency on allow_blank and allow_nil qualifiers
Browse files Browse the repository at this point in the history
After some discussion[1] was decided that these qualifiers do not accept
any parameter.

thoughtbot#722
  • Loading branch information
maurogeorge committed Jul 1, 2015
1 parent a3fb06c commit dc072cd
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -302,12 +302,12 @@ def in_range(range)
self
end

def allow_blank(allow_blank = true)
def allow_blank
@options[:allow_blank] = allow_blank
self
end

def allow_nil(allow_nil = true)
def allow_nil
@options[:allow_nil] = allow_nil
self
end
Expand Down

0 comments on commit dc072cd

Please sign in to comment.