Skip to content

Commit

Permalink
Merge pull request #74 from pboling/master
Browse files Browse the repository at this point in the history
Initialization Hook
  • Loading branch information
maxdemarzi committed Jan 18, 2013
2 parents 56384b5 + c450858 commit 36e025f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions lib/neography/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
require 'rails'

class Railtie < Rails::Railtie
module Neography
class Railtie < Rails::Railtie

rake_tasks do
load "neography/tasks.rb"
end
end
# To add an initialization step from your Railtie to Rails boot process, you just need to create an initializer block:
# See: http://api.rubyonrails.org/classes/Rails/Railtie.html
initializer 'neography.configure' do
# Provides a hook so people implementing the gem can do this in a railtie of their own:
# initializer "my_thing.neography_initialization", before: 'neography_railtie.configure_rails_initialization' do
# require 'my_thing/neography'
# end
end

rake_tasks do
load 'neography/tasks.rb'
end
end
end

0 comments on commit 36e025f

Please sign in to comment.