Skip to content
Snippets Groups Projects
Commit 09f40c86 authored by Dennis Collinson's avatar Dennis Collinson
Browse files

Feature Flag new publisher

parent 6288eff5
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ class PostsController < ApplicationController
:xml
def new
redirect_to "/stream" and return unless FeatureFlags.new_publisher
render :text => "", :layout => true
end
......
module FeatureFlags
def self.new_publisher
!(Rails.env.production? || Rails.env.staging?)
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment