Skip to content

Commit

Permalink
Updating to work with latest Rails convention Rails.root instead of R…
Browse files Browse the repository at this point in the history
…AILS_ROOT.

(cherry picked from commit d03e154)

Signed-off-by: Christof Glaser <gcg@gl.aser.de>
  • Loading branch information
Brandon Arbini authored and scivi committed May 26, 2009
1 parent 86e45a7 commit 1734023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions install.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copy the assets into RAILS_ROOT/public/
RAILS_ROOT = File.join(File.dirname(__FILE__), '../../../')

FileUtils.cp_r(
Dir[File.join(File.dirname(__FILE__), 'public')],
File.join(RAILS_ROOT),
File.join(Rails.root),
:verbose => true
)

Expand Down
4 changes: 2 additions & 2 deletions tasks/semantic_form_builder_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace :semantic_form_builder do
plugin_dir = File.join(File.dirname(__FILE__), '..')
FileUtils.cp_r(
Dir[File.join(plugin_dir, 'public')],
File.join(RAILS_ROOT),
File.join(Rails.root),
:verbose => true
)
puts "Finished."
end
end
end

0 comments on commit 1734023

Please sign in to comment.