Sha256: b61d28b5aeb48db9273967bf372a21579d225faddc9f4f729ade838341c41e6a

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 Bytes

Contents

module GoodSort
  class << self
    def shwing
      require 'good_sort/view_helpers'
      ActionView::Base.send :include, ViewHelpers

      require 'good_sort/sorter'
      ActiveRecord::Base.send :extend, Sorter

      if ActionView::Base.instance_methods.include? 'will_paginate'
        require 'good_sort/will_paginate'
        ActionView::Base.send :include, WillPaginate
      end
    end
  end
end

GoodSort.shwing

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
JasonKing-good_sort-0.1.1 lib/good_sort.rb
JasonKing-good_sort-0.1.10 lib/good_sort.rb
JasonKing-good_sort-0.1.3 lib/good_sort.rb
JasonKing-good_sort-0.1.6 lib/good_sort.rb
JasonKing-good_sort-0.1.7 lib/good_sort.rb
JasonKing-good_sort-0.2.0 lib/good_sort.rb
JasonKing-good_sort-0.2.1 lib/good_sort.rb
good_sort-0.2.4 lib/good_sort.rb