diff --git a/lib/neography/railtie.rb b/lib/neography/railtie.rb index 84fe140..520363e 100644 --- a/lib/neography/railtie.rb +++ b/lib/neography/railtie.rb @@ -3,8 +3,17 @@ module Neography class Railtie < Rails::Railtie + # 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" + load 'neography/tasks.rb' end end end