Feature Flag new publisher
This commit is contained in:
parent
6288eff599
commit
09f40c8684
2 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ class PostsController < ApplicationController
|
|||
:xml
|
||||
|
||||
def new
|
||||
redirect_to "/stream" and return unless FeatureFlags.new_publisher
|
||||
render :text => "", :layout => true
|
||||
end
|
||||
|
||||
|
|
|
|||
5
app/models/feature_flags.rb
Normal file
5
app/models/feature_flags.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
module FeatureFlags
|
||||
def self.new_publisher
|
||||
!(Rails.env.production? || Rails.env.staging?)
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue