Skip to content

Commit

Permalink
keep editor.css name consistent between template and user-version, do…
Browse files Browse the repository at this point in the history
… not attempt to load non-existing rich_editor.css
  • Loading branch information
bastiaanterhorst committed Aug 21, 2012
1 parent c403f9f commit 40f24da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/generators/rich/install/install_generator.rb
Expand Up @@ -18,7 +18,7 @@ def setup_route
end

def install_editor_styles
copy_file '../../../../../app/assets/stylesheets/rich/rich_editor.css', 'app/assets/stylesheets/rich/editor.css'
copy_file '../../../../../app/assets/stylesheets/rich/editor.css', 'app/assets/stylesheets/rich/editor.css'
end

def install_javascript
Expand Down
2 changes: 1 addition & 1 deletion lib/rich/engine.rb
Expand Up @@ -7,7 +7,7 @@ class Engine < Rails::Engine
isolate_namespace Rich

initializer "rich.add_middleware" do |app|
app.config.assets.precompile += %w(rich/base.js rich/editor.css rich/rich_editor.css)
app.config.assets.precompile += %w(rich/base.js rich/editor.css)
app.middleware.use 'Rack::RawUpload', :paths => ['/rich/files']
end

Expand Down

0 comments on commit 40f24da

Please sign in to comment.