Sha256: 0121e660436dcc5456cd63817d522c3382eb29f56c4c337e6eaeb22fd4acf057

Contents?: true

Size: 272 Bytes

Versions: 12

Compression:

Stored size: 272 Bytes

Contents

class UsersGuard
  def initialize(guard)
    guard.name = "users"
    guard.aliases= {:edit => :update}
    guard.action_map= {
      :index => [:*],
      :show => [:users],
      :create => [:users],
      :update => [:users],
      :destroy => [:users]
    }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ixtlan-guard-0.9.0 spec/guards/users_guard.yml~
ixtlan-guard-0.8.3 spec/guards/users_guard.yml~
ixtlan-guard-0.8.2 spec/guards/users_guard.yml~
ixtlan-guard-0.8.1 spec/guards/users_guard.yml~
ixtlan-guard-0.8.0 spec/guards/users_guard.yml~
ixtlan-guard-0.7.2 spec/guards/users_guard.yml~
ixtlan-guard-0.7.0 spec/guards/users_guard.yml~
ixtlan-guard-0.6.1 spec/guards/users_guard.yml~
ixtlan-guard-0.5.0 spec/guards/users_guard.rb
ixtlan-guard-0.4.1 spec/guards/users_guard.rb
ixtlan-guard-0.4.0 spec/guards/users_guard.rb
ixtlan-guard-0.1.0 spec/guards/users_guard.rb