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.9.4.7 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4.6 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4.5 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4.3 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4.2 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4.1 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.4 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.9.3.2 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9.5 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9.4 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9.3 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9.2 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9.1 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.9 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.8.1 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.8 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.7 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.6.2 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.6.1 spec/active_record/scenarios/shared/licenses/musicians_license.rb
cantango-0.8.6 spec/active_record/scenarios/shared/licenses/musicians_license.rb