13 lines
213 B
Ruby
13 lines
213 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
|