Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unused files

  • Loading branch information...
commit afd4cf0022fcbc98f435be33cfea544d39113ccc 1 parent e844dee
@kyohsuke authored
View
2  arb_indexes.gemspec
@@ -5,7 +5,7 @@ require 'arb_indexes/version'
Gem::Specification.new do |gem|
gem.name = 'arb_indexes'
- gem.version = ArbIndexes::VERSION
+ gem.version = '0.0.1'
gem.authors = ['Keisuke Kawahara']
gem.email = ['kyohsuke@conafie.jp']
gem.description = %q{get indexes from Model}
View
12 lib/arb_indexes.rb
@@ -1,3 +1,9 @@
-require 'active_support'
-require 'arb_indexes/version'
-require 'arb_indexes/base'
+module ActiveRecord
+ class Base
+ class << self
+ def indexes
+ connection.indexes(table_name)
+ end
+ end
+ end
+end
View
8 lib/arb_indexes/base.rb
@@ -1,8 +0,0 @@
-module ArbIndexes
- extend ActiveSupport::Concern
- def indexes
- connection.indexes(table_name)
- end
-end
-
-ActiveRecord::Base.send(:include, ArbIndexes)
View
3  lib/arb_indexes/version.rb
@@ -1,3 +0,0 @@
-module ArbIndexes
- VERSION = '0.0.1'
-end
Please sign in to comment.
Something went wrong with that request. Please try again.