Module: Sortiri

Defined in:
lib/sortiri.rb,
lib/sortiri/model.rb,
lib/sortiri/utils.rb,
lib/sortiri/column.rb,
lib/sortiri/parser.rb,
lib/sortiri/version.rb,
lib/sortiri/configuration.rb,
lib/sortiri/missing_column.rb,
lib/sortiri/active_record/column.rb,
lib/sortiri/view_helpers/table_sorter.rb,
lib/sortiri/active_record/foreign_column.rb,
lib/sortiri/generators/order_by_generator.rb

Defined Under Namespace

Modules: ActiveRecord, Generators, Model, ViewHelpers Classes: Column, Configuration, MissingColumn, Parser, Utils

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configurationObject



21
22
23
# File 'lib/sortiri.rb', line 21

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
# File 'lib/sortiri.rb', line 25

def configure
  yield(configuration)
end