Skip to content

A simple, opinionated rails plugin that adds feature flags to a user model.

License

Notifications You must be signed in to change notification settings

measurence/gem-feature-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= Feature Flags Gem

A simple, opinionated library that adds feature flags to a user model.

== Install

gem 'feature_flags', github: 'measurence/gem-feature-flags'

== Usage

In your model:

class User < ActiveRecord::Base

  serialize :features

  manage_features :awesome_feature, :other_feature

end

In your templates or controllers:

current_user.enable_awesome_feature!

if current_user.awesome_feature_enabled?
  ...
end

= License

This project rocks and uses MIT-LICENSE.

About

A simple, opinionated rails plugin that adds feature flags to a user model.

Resources

License

Stars

Watchers

Forks

Packages

No packages published