Sha256: f99414379f2fb0120f2b3d391c75531009f7c9bc3ea24587965f80bc87f2218d

Contents?: true

Size: 711 Bytes

Versions: 10

Compression:

Stored size: 711 Bytes

Contents

require 'action_pack'
require 'active_support/core_ext/string/inflections'

module RoutingFilter
  autoload :Filter,     'routing_filter/filter'
  autoload :Chain,      'routing_filter/chain'
  autoload :Extension,  'routing_filter/filters/extension'
  autoload :Locale,     'routing_filter/filters/locale'
  autoload :Pagination, 'routing_filter/filters/pagination'
  autoload :Uuid,       'routing_filter/filters/uuid'

  class << self
    def build(name, options)
      const_get(name.to_s.camelize).new(options)
    end

    def active=(active)
      @@active = active
    end

    def active?
      defined?(@@active) ? @@active : @@active = true
    end
  end
end

require "routing_filter/adapters/rails"

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
routing-filter-codeur-0.7.1.2 lib/routing_filter.rb
routing-filter-codeur-0.7.1.1 lib/routing_filter.rb
routing-filter-codeur-0.7.1 lib/routing_filter.rb
routing-filter-0.7.0 lib/routing_filter.rb
routing-filter-0.6.3 lib/routing_filter.rb
routing-filter-0.6.2 lib/routing_filter.rb
routing-filter-0.6.1 lib/routing_filter.rb
routing-filter-0.6.0 lib/routing_filter.rb
routing-filter-0.5.1 lib/routing_filter.rb
routing-filter-0.5.0 lib/routing_filter.rb