Sha256: ad56dd9d274acf72860d272efd3300074193b68728eaf1848483be86610d7d46

Contents?: true

Size: 241 Bytes

Versions: 6

Compression:

Stored size: 241 Bytes

Contents

# This method is pretty useful when used with the `for_subject` method
# See http://walruz.rubyforge.org/ for more info.
#
class Policies::ActorIsSubject < Walruz::Policy
  
  def authorized?(actor, subject)
    actor == subject
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
walruz-rails-0.0.11 rails_generators/templates/actor_is_subject_example.rb
walruz-rails-0.0.10 rails_generators/templates/actor_is_subject_example.rb
walruz-rails-0.0.9 rails_generators/templates/actor_is_subject_example.rb
walruz-rails-0.0.8 rails_generators/templates/actor_is_subject_example.rb
walruz-rails-0.0.4 rails_generators/templates/actor_is_subject_example.rb
walruz-rails-0.0.5 rails_generators/templates/actor_is_subject_example.rb