Sha256: 43cdc564c9ce764d0c2999387432a6ef3104d18cdfd825647798047c4faeb122

Contents?: true

Size: 202 Bytes

Versions: 1

Compression:

Stored size: 202 Bytes

Contents

module Txtblx
  module AbilityMixin
    # Call this in the ability initializer of the host app
    def txtblx_abilities(user)
      return if user.nil?

      can(:manage, Textblock)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
txtblx-0.0.1 lib/txtblx/ability_mixin.rb