Sha256: e41f7fc0ae5a20c9e450a2247fdfa2ca580533a5f2cb4d39434db5f470071746

Contents?: true

Size: 740 Bytes

Versions: 20

Compression:

Stored size: 740 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_#{ActionPack::VERSION::MAJOR}"

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
routing-filter-0.4.0.1 lib/routing_filter.rb
routing-filter-0.4.0 lib/routing_filter.rb
routing-filter-0.4.0.pre lib/routing_filter.rb
routing-filter-0.3.1 lib/routing_filter.rb
routing-filter-0.3.0 lib/routing_filter.rb
routing-filter-0.3.0.beta lib/routing_filter.rb
routing-filter-0.2.4 lib/routing_filter.rb
vigetlabs-routing-filter-0.2.4 lib/routing_filter.rb
aratak-routing-filter-0.2.4 lib/routing_filter.rb
routing-filter-0.2.3 lib/routing_filter.rb
routing-filter-0.2.2 lib/routing_filter.rb
routing-filter-0.2.0 lib/routing_filter.rb
routing-filter-0.1.7 lib/routing_filter.rb
routing-filter-0.1.6 lib/routing_filter.rb
routing-filter-0.1.5 lib/routing_filter.rb
routing-filter-0.1.4 lib/routing_filter.rb
routing-filter-0.1.3 lib/routing_filter.rb
routing-filter-0.1.2 lib/routing_filter.rb
routing-filter-0.1.1 lib/routing_filter.rb
routing-filter-0.1.0 lib/routing_filter.rb