Sha256: addd0ba816f1991a01fdf765c4e8bfed9af21f155db0d67eb99f9123a2cce983

Contents?: true

Size: 198 Bytes

Versions: 2

Compression:

Stored size: 198 Bytes

Contents

class IfFalseController < ApplicationController
  
  param_accessible :foo, :if => :admin?
  param_accessible({:bar => [:baz]}, :if => :admin?)
  
  protected
  
  def admin?
    false
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
param_accessible-0.0.2 spec/app_root/app/controllers/if_false_controller.rb
param_accessible-0.0.1 spec/app_root/app/controllers/if_false_controller.rb