Sha256: a6d1f430274b764c209c9d6419738eff17d2277726a77957488fb878f1e293b7
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module Riveter module QueryFilterFormHelper def query_filter_form_for(query_filter, options={}, &block) query_filter_class_name = query_filter.class.name.underscore options = { :as => query_filter_class_name.gsub(/_query_filter$/, ''), :url => query_filter_class_name, :method => :get }.merge(options) respond_to?(:simple_form_for) ? simple_form_for(query_filter, options, &block) : form_for(query_filter, options, &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riveter-0.0.1 | app/helpers/riveter/query_filter_form_helper.rb |