Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer vs. business #125

Merged
merged 21 commits into from Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev
Feature flag edge of Messaging project
  • Loading branch information
joemasilotti committed Nov 30, 2021
commit 58ccf062e7ce63a8eacf6d8d0db99b81daa27949
@@ -6,8 +6,10 @@ class ApplicationController < ActionController::Base
def after_sign_in_path_for(user)
if user.developer.present? || user.business.present?
super
else
elsif Feature.enabled?(:messaging)
new_role_path
else
super
end
end

@@ -0,0 +1,10 @@
class Feature
def self.enabled?(feature_name)
case feature_name.to_sym
when :messaging
!Rails.env.production?
else
true
end
end
end