Sha256: a2bfbc188854fc999e5a58cd232a05bbdd8b85755ef001f7f33fc7e3edc6b030
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
module StrongForm module Tag extend ActiveSupport::Concern included do alias_method :render_orig, :render 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 render_orig end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strong_form-0.0.5 | lib/strong_form/tag.rb |
strong_form-0.0.4 | lib/strong_form/tag.rb |