Sha256: 2a00fd313d58671b1dbe563faae2eda97bad2e509f4243862b1f9ee70fe65b43
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
require 'active_record' require 'livelist/rails/filter_collection' module Livelist module Rails module ActiveRecord def filters @filters ||= FilterCollection.new end def filter_for(slug, options = {}) filters.create_filter( options.merge( :model_name => model_name, :slug => slug ) ) end def filters_as_json(params, options = {}) filters.as_json(scoped, params, options) end def filter(params, options = {}) filters.relation(scoped, params, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
livelist-rails-0.0.18 | lib/livelist/rails/active_record.rb |
livelist-rails-0.0.17 | lib/livelist/rails/active_record.rb |