Sha256: 1b7e07addec91f5a067a728427e5e2c291eb4ec6f358188a05979760e42335f4
Contents?: true
Size: 343 Bytes
Versions: 3
Compression:
Stored size: 343 Bytes
Contents
module StrongForm module Tag def render if object.respond_to?(:permitted_attributes) && !object.permitted_attributes.nil? (@html_options || @options)[:disabled] ||= object.permitted_attributes != true && !object.permitted_attributes.include?(@method_name.to_sym) end super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
strong_form-0.0.3 | lib/strong_form/tag.rb |
strong_form-0.0.2 | lib/strong_form/tag.rb |
strong_form-0.0.1 | lib/strong_form/tag.rb |