module PhocoderRails class Engine < Rails::Engine config.acts_as_phocodable = ActiveSupport::OrderedOptions.new initializer "phocoder_config" do |app| if !config.acts_as_phocodable.storage_mode.blank? ActsAsPhocodable.storeage_mode = config.acts_as_phocodable.storage_mode end if !config.acts_as_phocodable.config_file.blank? ActsAsPhocodable.config_file = config.acts_as_phocodable.config_file end app.middleware.use ::ActionDispatch::Static, "#{root}/public" end end end