module SimpleForm::Helpers::Readonly
Private Instance Methods
has_readonly?()
click to toggle source
# File lib/simple_form/helpers/readonly.rb, line 10 def has_readonly? options[:readonly] == true end
readonly_class()
click to toggle source
# File lib/simple_form/helpers/readonly.rb, line 6 def readonly_class :readonly if has_readonly? end