lib/yaks/resource/form.rb in yaks-0.9.0 vs lib/yaks/resource/form.rb in yaks-0.10.0

- old
+ new

@@ -12,24 +12,14 @@ fields_flat.each_with_object({}) do |field, values| values[field.name] = field.value end end - def fields_flat(fs = fields) - fs.each_with_object([]) do |field, acc| - if field.type.equal? :fieldset - acc.concat(fields_flat field.fields) - else - acc << field - end - end - end - def method?(meth) - !method.nil? && method.downcase.to_sym === meth.downcase.to_sym + !method.nil? && method.downcase.to_sym == meth.downcase.to_sym end - def has_action? + def has_action? # rubocop:disable Style/PredicateName !action.nil? end end end end