lib/para/attribute_field/base.rb in para-0.11.4 vs lib/para/attribute_field/base.rb in para-0.12.0

- old
+ new

@@ -77,9 +77,12 @@ # def searchable? options[:searchable] != false && ( [:string, :text].include?(type.to_sym) && !name.match(/password/) + ) && ( + !model.respond_to?(:ransackable_attributes) || + model.ransackable_attributes.include?(name.to_s) ) end # Allows parsing input params before they're passed to the model, so # it can be easy to edit them according to some field type specific