Sha256: c8d6bf74a5536d56c4f42321c4c2c15839a032e6652441ee70fe6212bb323220
Contents?: true
Size: 268 Bytes
Versions: 5
Compression:
Stored size: 268 Bytes
Contents
class Spree::AuctionAbility include CanCan::Ability def initialize(user) can :create, Spree::Auction do user.admin? end can %i{edit update destroy delete clone}, Spree::Auction do |auction| auction.creator_id == user.id end end end
Version data entries
5 entries across 5 versions & 1 rubygems