-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from pboling/master
Initialization Hook
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |