Permalink
Browse files

Fix permission issue on public dir

  • Loading branch information...
1 parent c71955e commit 66a7311c0e775b1e594129d14015964d99caf3de @karlbright karlbright committed Oct 19, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/models/stylesheet.rb
View
@@ -4,7 +4,11 @@ class Stylesheet < ActiveRecord::Base
TEMPLATE_PATH_ROOT = Rails.root.join 'app', 'assets', 'whatlock'
TEMPLATE_BASE_FILENAME = 'whatlock.css.sass.erb'
- EXPORT_PATH_ROOT = Rails.root.join 'public', 'stylesheets'
+ if Rails.env.production?
+ EXPORT_PATH_ROOT = Rails.root.join 'tmp'
+ else
+ EXPORT_PATH_ROOT = Rails.root.join 'public', 'stylesheets'
+ end
attr_accessible :author, :options, :primary_color, :version

0 comments on commit 66a7311

Please sign in to comment.