module Filterameter

Filterameter

Module Filterameter can be mixed into a controller to provide the DSL to describe each controller's filters.

The model class must be declared if it cannot be derived. It can be derived if (A) the model is not namespaced and its name matches the controller name (for example BrandsController -> Brand) or (B) both the controller and model share the same namespace and name.

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/filterameter.rb, line 19
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/filterameter.rb, line 27
def self.configure
  yield(configuration)
end
reset() click to toggle source
# File lib/filterameter.rb, line 23
def self.reset
  @configuration = Configuration.new
end