Sha256: a1ca040cd7a17a2342f89688652e4193ffeaf89d30bcab4174296af98757079a
Contents?: true
Size: 375 Bytes
Versions: 16
Compression:
Stored size: 375 Bytes
Contents
module Flipper # A default implementation of `#flipper_id` for actors. # # class User < Struct.new(:id) # include Flipper::Identifier # end # # user = User.new(99) # Flipper.enable :some_feature, user # Flipper.enabled? :some_feature, user #=> true # module Identifier def flipper_id "#{self.class.name};#{id}" end end end
Version data entries
16 entries across 16 versions & 1 rubygems