Last active
August 29, 2015 14:07
-
-
Save thejspr/7706cc67dead35d24d60 to your computer and use it in GitHub Desktop.
admin plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/config/environment.rb w/config/environment.rb | |
index 7549e10..b1636d4 100644 | |
--- i/config/environment.rb | |
+++ w/config/environment.rb | |
@@ -124,6 +124,7 @@ Rails::Initializer.run do |config| | |
config.autoload_paths << RAILS_ROOT + '/app/services' | |
config.plugin_paths << 'services' | |
+ config.reload_plugins = true if ENV["RAILS_ENV"] == 'development' | |
# RailsLTS https://makandracards.com/railslts/16311-configuring-rails-lts | |
config.rails_lts_options = { default: :compatible } | |
diff --git i/services/admin/app/controllers/admin/landing_page_brand_messages_controller.rb w/services/admin/app/controllers/admin/landing_page_brand_messages_controller.rb | |
index 966965d..9ad5ad0 100644 | |
--- i/services/admin/app/controllers/admin/landing_page_brand_messages_controller.rb | |
+++ w/services/admin/app/controllers/admin/landing_page_brand_messages_controller.rb | |
@@ -1,3 +1,5 @@ | |
+require 'admin/landing_pages/brand_messages_editor' | |
+ | |
module Admin | |
class LandingPageBrandMessagesController < Admin::BaseController | |
restrict_access_to_roles :admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment