lib/trestle/form/fields/date_select.rb in trestle-0.9.1 vs lib/trestle/form/fields/date_select.rb in trestle-0.9.2
- old
+ new
@@ -15,10 +15,10 @@
builder.raw_date_select(name, options, html_options, &block)
end
end
def default_html_options
- Trestle::Options.new(class: ["form-control"], disabled: admin.readonly?, data: { enable_select2: true })
+ Trestle::Options.new(class: ["form-control"], disabled: readonly?, data: { enable_select2: true })
end
end
end
end
end