Sha256: d2e349db43dc04ae44b491cb0b96424d45cd024c9e3d8b398620ee26f8235564

Contents?: true

Size: 167 Bytes

Versions: 1

Compression:

Stored size: 167 Bytes

Contents

class Ability
  include CanCan::Ability

  def initialize(user)
    user ||= <%= self.cancan_model.classify %>.new
    if user
      can :read, :all
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_application-0.0.1 lib/generators/active_application/cancan/templates/ability.rb