Sha256: afa2caedea0559fd7959cb4c0ab04e8edc092839602b73628d2b7c57062bacfa

Contents?: true

Size: 139 Bytes

Versions: 7

Compression:

Stored size: 139 Bytes

Contents

module Policies
  class AuthorPolicy < Walruz::Policy
  
    def authorized?(author, song)
      song.author == author
    end
  
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
walruz-rails-0.0.11 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.10 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.9 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.8 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.3 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.4 examples/rails/lib/walruz/policies/author_policy.rb
walruz-rails-0.0.5 examples/rails/lib/walruz/policies/author_policy.rb