Sha256: 8af5c76e7a7e723b09ac3506d59864637f8c52642481905fccb5687a81a2764a

Contents?: true

Size: 254 Bytes

Versions: 7

Compression:

Stored size: 254 Bytes

Contents

require 'walruz/policies'

class Song < ActiveRecord::Base
  
  check_authorizations :sing => Policies::AuthorOrColabororPolicy,
                       :sell => Policies::AuthorAndNotColaboratorPolicy
  
  belongs_to :author, :polymorphic => true
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
walruz-rails-0.0.11 examples/rails/app/models/song.rb
walruz-rails-0.0.10 examples/rails/app/models/song.rb
walruz-rails-0.0.9 examples/rails/app/models/song.rb
walruz-rails-0.0.8 examples/rails/app/models/song.rb
walruz-rails-0.0.3 examples/rails/app/models/song.rb
walruz-rails-0.0.4 examples/rails/app/models/song.rb
walruz-rails-0.0.5 examples/rails/app/models/song.rb