mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Tag value method takes objects
This commit is contained in:
parent
8dc191a4cd
commit
90501a8e56
@ -12,7 +12,7 @@ module ValidatesTimeliness
|
||||
@template_object, @options, @html_options = template_object, options, html_options
|
||||
end
|
||||
|
||||
def value
|
||||
def value(object)
|
||||
return super unless @template_object.params[@object_name]
|
||||
|
||||
pairs = @template_object.params[@object_name].select {|k,v| k =~ /^#{@method_name}\(/ }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user