Sha256: fa63fd2d06422c731963f46096e98192c6b8449e24514ed48ddd2c9cb7ccb57f

Contents?: true

Size: 216 Bytes

Versions: 22

Compression:

Stored size: 216 Bytes

Contents

class MusiciansLicense < CanTango::License
  def initialize name
    super
  end

  def static_rules
    can(:read, Song)
    can(:write, Tune)
    can(:manage, Concerto)
    cannot(:manage, Improvisation)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.8.5.1 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.0 spec/active_record/scenarios/shared/licenses/musicians_license.rb