module SimpleForm::Helpers::Readonly

Private Instance Methods

has_readonly?() click to toggle source
# File lib/simple_form/helpers/readonly.rb, line 11
def has_readonly?
  options[:readonly] == true
end
readonly_class() click to toggle source
# File lib/simple_form/helpers/readonly.rb, line 7
def readonly_class
  :readonly if has_readonly?
end