1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/lib/simple_form/helpers/disabled.rb
2011-09-11 18:53:00 -03:00

15 lines
229 B
Ruby

module SimpleForm
module Helpers
module Disabled
private
def disabled_class
'disabled' if has_disabled?
end
def has_disabled?
options[:disabled] == true
end
end
end
end