Open rahul404 opened 4 years ago
Is there a way to add a default value to expose in case of the value is not present? For example
expose
expose :tags do |filter| filter[:tags].present? ? filter[:tags] : "all" end
could be replaced by expose :tags, default: "all"
expose :tags, default: "all"
Is there a way to add a default value to
expose
in case of the value is not present? For examplecould be replaced by
expose :tags, default: "all"