Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaning

  • Loading branch information...
commit 467ce3893b87594cb1eb7ff44ba32756b6044b1a 1 parent 4ff97b5
@snmgian authored
Showing with 1 addition and 21 deletions.
  1. +0 −1  init.rb
  2. +1 −19 lib/simple_sorting.rb
  3. +0 −1  rails/init.rb
View
1  init.rb
@@ -1,2 +1 @@
-puts "blaa"
require 'simple_sorting'
View
20 lib/simple_sorting.rb
@@ -1,29 +1,11 @@
-puts "in simple_sort"
-puts ActiveSupport::Dependencies.load_paths
-
require 'simple_sorting/association_sorting'
require 'simple_sorting/simple_sorting_controller'
require 'simple_sorting/simple_sorting_helper'
require 'simple_sorting/sorting'
-=begin
- path = File.join(File.dirname(__FILE__), 'app')
- $LOAD_PATH << path
- ActiveSupport::Dependencies.load_paths << path
- ActiveSupport::Dependencies.load_once_paths.delete(path)
-
-%w{ models controllers helpers }.each do |dir|
- path = File.join(File.dirname(__FILE__), 'app', dir)
- $LOAD_PATH << path
- ActiveSupport::Dependencies.load_paths << path
- ActiveSupport::Dependencies.load_once_paths.delete(path)
-end
-=end
-
-puts ".."
-puts ActiveSupport::Dependencies.load_paths
ActiveRecord::Base.extend(SimpleSorting::AssociationSorting)
ActiveRecord::Base.extend(SimpleSorting::Sorting)
ActionController::Base.send :include, SimpleSortingController
+
ActionView::Base.send :include, SimpleSortingHelper
View
1  rails/init.rb
@@ -1,2 +1 @@
-puts "reqq"
require 'simple_sorting'
Please sign in to comment.
Something went wrong with that request. Please try again.