Sha256: ca9bf5511e7f1f9faf1b53bed95c2403686cd7fe5c9e201df949e942d38ce942
Contents?: true
Size: 366 Bytes
Versions: 53
Compression:
Stored size: 366 Bytes
Contents
module CurationConcerns::User extend ActiveSupport::Concern included do delegate :can?, :cannot?, to: :ability end # Redefine this for more intuitive keys in Redis def to_param # HACK: because rails doesn't like periods in urls. user_key.gsub(/\./, '-dot-') end private def ability @ability ||= ::Ability.new(self) end end
Version data entries
53 entries across 53 versions & 2 rubygems