Feature Flag new publisher

This commit is contained in:
Dennis Collinson 2012-03-27 15:28:30 -07:00
parent 6288eff599
commit 09f40c8684
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,7 @@ class PostsController < ApplicationController
:xml
def new
redirect_to "/stream" and return unless FeatureFlags.new_publisher
render :text => "", :layout => true
end

View file

@ -0,0 +1,5 @@
module FeatureFlags
def self.new_publisher
!(Rails.env.production? || Rails.env.staging?)
end
end