forked from refinery/refinerycms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a script/rails to engine and form extensions' templates to allo…
…w rails commands to work inside extensions.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
core/lib/generators/refinery/engine/templates/script/rails
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
|
||
ENGINE_PATH = File.expand_path('../..', __FILE__) | ||
dummy_rails_path = File.expand_path('../../spec/dummy/script/rails', __FILE__) | ||
if File.exist?(dummy_rails_path) | ||
load dummy_rails_path | ||
else | ||
puts "Please first run 'rake refinery:testing:dummy_app' to create a dummy Refinery CMS application." | ||
end |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
|
||
ENGINE_PATH = File.expand_path('../..', __FILE__) | ||
dummy_rails_path = File.expand_path('../../spec/dummy/script/rails', __FILE__) | ||
if File.exist?(dummy_rails_path) | ||
load dummy_rails_path | ||
else | ||
puts "Please first run 'rake refinery:testing:dummy_app' to create a dummy Refinery CMS application." | ||
end |