Module: SortItOut::Sortable::ActMethods

Defined in:
lib/sort_it_out/sortable.rb

Instance Method Summary collapse

Instance Method Details

#sortable(options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/sort_it_out/sortable.rb', line 11

def sortable( options={} )
  unless included_modules.include? InstanceMethods
    include InstanceMethods
    before_filter :resolve_sort
    class_attribute :options
  end

  self.options = options
end