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-12-05 10:44:02 +01:00

13 lines
No EOL
212 B
Ruby

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