Skip to content

Commit

Permalink
getting rid of find_and_require_user_defined_code, closing #68
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Nov 27, 2012
1 parent 6fb334b commit a9687eb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/neography.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
def find_and_require_user_defined_code
extensions_path = ENV['neography_extensions'] || "~/.neography"
extensions_path = File.expand_path(extensions_path)
if File.exists?(extensions_path)
Dir.open extensions_path do |dir|
dir.entries.each do |file|
if file.split('.').size > 1 && file.split('.').last == 'rb'
extension = File.join(File.expand_path(extensions_path), file)
require(extension) && puts("Loaded Extension: #{extension}")
end
end
end
end
end

require 'cgi'
require 'httparty'
require 'json'
Expand Down Expand Up @@ -47,8 +32,6 @@ def find_and_require_user_defined_code

require 'neography/railtie' if defined? Rails::Railtie

find_and_require_user_defined_code

module Neography

def self.configure
Expand Down

0 comments on commit a9687eb

Please sign in to comment.