Module: Remarkable::ActiveRecord::Helpers
Overview
Instance Method Summary
collapse
#assert_contains, #assert_does_not_contain
Instance Method Details
#allow_blank(value = true) ⇒ Object
16
17
18
19
|
# File 'lib/remarkable/active_record/helpers.rb', line 16
def allow_blank(value = true)
@options[:allow_blank] = value
self
end
|
#allow_nil(value = true) ⇒ Object
11
12
13
14
|
# File 'lib/remarkable/active_record/helpers.rb', line 11
def allow_nil(value = true)
@options[:allow_nil] = value
self
end
|
#message(value) ⇒ Object
6
7
8
9
|
# File 'lib/remarkable/active_record/helpers.rb', line 6
def message(value)
@options[:message] = value
self
end
|