lib/pwb/engine.rb in pwb-1.2.0 vs lib/pwb/engine.rb in pwb-1.3.0

- old
+ new

@@ -10,11 +10,14 @@ require 'jquery-rails' require 'simple_form' require 'devise' require 'cloudinary' require 'active_hash' -require 'comfortable_mexican_sofa' +require 'firebase' +require "liquid" +# require 'comfortable_mexican_sofa' + # require 'redis' # # logster gem has to be after redis.. # require 'logster' # require 'byebug' # require 'fog/aws' @@ -31,14 +34,25 @@ end config.action_dispatch.default_headers = { 'X-Frame-Options' => 'ALLOWALL' } + + + # PWB precompile assets defined here had been working fine + # till I added "gem 'property_web_scraper', github: 'RealEstateWebTools/property_web_scraper' " + # to gemfile. + # Now get "Asset was not declared to be precompiled in production" error + # and need to add below to /pwb/spec/dummy/config/initializers/assets.rb fix that: + # Rails.application.config.assets.precompile += %w( pwb/themes/default.css ) + + # config.assets.paths << File.expand_path("../../assets/stylesheets", __FILE__) # config.assets.paths << File.expand_path("../../assets/javascripts", __FILE__) config.assets.paths << root.join("app", "assets", "stylesheets", "pwb", "themes") config.assets.paths << root.join("app", "assets", "javascripts", "pwb", "themes") - config.assets.precompile += %w( default.css chic.css oslo.css berlin.css default.js chic.js oslo.js berlin.js ) + config.assets.precompile += %w( pwb_admin_panel/application_legacy_1.css default.css chic.css berlin.css + squares.css matt.css vic.css vic.js matt.js squares.js default.js chic.js berlin.js pwb_admin_panel/application_legacy_1.js ) config.to_prepare do # https://github.com/plataformatec/devise/wiki/How-To:-Use-devise-inside-a-mountable-engine Devise::SessionsController.layout "pwb/devise" Devise::RegistrationsController.layout "pwb/devise"