Sha256: 89c9d24ff46d460c6e7d04d196e5109816373503d32ffc04ed60be6bfb43b404

Contents?: true

Size: 334 Bytes

Versions: 11

Compression:

Stored size: 334 Bytes

Contents

module Cms
  # Captures values for the search form.
  class SearchFilter
    include ::ActiveModel::Model

    attr_accessor :model_class, :term

    def self.build(params_hash, model_class)
      model = self.new(params_hash)
      model.model_class = model_class
      model
    end

    def path
      model_class
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/models/cms/search_filter.rb
browsercms-artirix-4.0.3.3 app/models/cms/search_filter.rb
browsercms-artirix-4.0.3.2 app/models/cms/search_filter.rb
browsercms-artirix-4.0.3.1 app/models/cms/search_filter.rb
browsercms-artirix-4.0.3 app/models/cms/search_filter.rb
browsercms-artirix-4.0.2 app/models/cms/search_filter.rb
browsercms-artirix-4.0.1.1 app/models/cms/search_filter.rb
browsercms-artirix-4.0.0.rc1.art4 app/models/cms/search_filter.rb
browsercms-4.0.0.rc1 app/models/cms/search_filter.rb
browsercms-4.0.0.beta app/models/cms/search_filter.rb
browsercms-4.0.0.alpha app/models/cms/search_filter.rb