Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (15 sloc) 322 Bytes
module SortySorter
module Declaration
extend ActiveSupport::Concern
module ClassMethods
attr_reader :sort_columns
def sort_with(columns)
@sort_columns = columns
end
def sorty?
true
end
end
end
end
ActiveRecord::Base.send(:include, SortySorter::Declaration)