Sha256: 5b387b9f6284425f3cb987255fb7295252f56303bc2c9be684c6ee07485c967a

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

class <%= user.to_s.camelize %>Permit < CanTango::UserPermit
  def initialize ability
    super
  end

  protected

  def permit_rules
    # insert your can, cannot and any other rule statements here
    <%= permit_logic.strip %>
    <%= license_logic %>
  end

  module Cached
    def permit_rules
    end
  end

  module NonCached
    def permit_rules
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cantango-permits-0.1.1 lib/generators/cantango/user_permit/templates/user_permit.erb
cantango-0.9.4.7 lib/generators/cantango/user_permit/templates/user_permit.erb
cantango-0.9.4.6 lib/generators/cantango/user_permit/templates/user_permit.erb
cantango-0.9.4.5 lib/generators/cantango/user_permit/templates/user_permit.erb
cantango-0.9.4.3 lib/generators/cantango/user_permit/templates/user_permit.erb
cantango-0.9.4.2 lib/generators/cantango/user_permit/templates/user_permit.erb