Skip to content

Commit

Permalink
precompile devise.css in production
Browse files Browse the repository at this point in the history
  • Loading branch information
acesuares committed Jul 14, 2015
1 parent fc02f80 commit 70d6035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/inline_forms_installer_core.rb
Expand Up @@ -296,7 +296,7 @@ def self.down

# see https://github.com/galetahub/ckeditor/issues/579
say "- Set languages for ckeditor to ['en', 'nl'] in config/initializers/ckeditor.rb..."
insert_into_file "config/initializers/ckeditor.rb", " config.assets_languages = ['en', 'nl']", :after => "config.assets_languages = ['en', 'uk']\n"
insert_into_file "config/initializers/ckeditor.rb", " config.assets_languages = ['en', 'nl']\n", :after => "config.assets_languages = ['en', 'uk']\n"

say "- Create ckeditor config.js"
copy_file File.join(GENERATOR_PATH, 'lib/generators/assets/javascripts/ckeditor/config.js'), "app/assets/javascripts/ckeditor/config.js"
Expand Down Expand Up @@ -493,6 +493,10 @@ def initialize(user)
remove_file 'spec/factories/users.rb'
remove_file 'spec/models/user_spec.rb'

# precompile devise.css
say "- Precompile devise.css in environments/production.rb..."
insert_into_file "config/environments/production.rb", " config.assets.precompile += %w( devise.css )\n", :after => "# config.assets.precompile += %w( search.js )\n"

# devise mailer stuff
say "- Injecting devise mailer stuff in environments/production.rb..."
# strip_heredoc_with_indent(2) became strip_heredoc(2), but only in rails 4... :-(
Expand Down
2 changes: 1 addition & 1 deletion lib/inline_forms/version.rb
@@ -1,4 +1,4 @@
# -*- encoding : utf-8 -*-
module InlineForms
VERSION = "3.1.1"
VERSION = "3.1.2"
end

0 comments on commit 70d6035

Please sign in to comment.