Method: HyperMesh::Regulation#regulate_for

Defined in:
lib/synchromesh/policy.rb

#regulate_for(acting_user) ⇒ Object



159
160
161
162
163
164
165
# File 'lib/synchromesh/policy.rb', line 159

def regulate_for(acting_user)
  Enumerator.new do |y|
    regulations.each do |regulation|
      y << acting_user.instance_eval(&regulation)
    end
  end
end