Sha256: 43504f369ce28a57f0eb3b249688e09365a7bb886945a9598f3782aaad499334
Contents?: true
Size: 371 Bytes
Versions: 25
Compression:
Stored size: 371 Bytes
Contents
module CanTango module Rules module Adaptor module Generic def attribute_condition attribute, user_scope Proc.new { |model| model.send(attribute) == user_scope } end def include_condition attribute, user_scope Proc.new { |model| model.send(attribute).include? user_scope } end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems