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

16 lines
229 B
Ruby
Raw Normal View History

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