Sha256: 5eac6e55147324c5bcbf98e2e25879c9d189b3dcc802e58194c399474211cec4

Contents?: true

Size: 284 Bytes

Versions: 11

Compression:

Stored size: 284 Bytes

Contents

class UsersController
  before_filter :find_user

  def show
  end

  private
  def find_user
    @user = User.find(params[:id])
  end

  protected
  def protected_find_user
    @user = User.find(params[:id])
  end

  public
  def create
    @user = User.new(params[:user])
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sandi_meter-1.2.0 spec/test_classes/15_controller.rb
sandi_meter-1.1.8 spec/test_classes/15_controller.rb
sandi_meter-1.1.7 spec/test_classes/15_controller.rb
sandi_meter-1.1.6 spec/test_classes/15_controller.rb
sandi_meter-1.1.5 spec/test_classes/15_controller.rb
sandi_meter-1.0.5 spec/test_classes/15_controller.rb
sandi_meter-1.0.4 spec/test_classes/15_controller.rb
sandi_meter-1.0.3 spec/test_classes/15_controller.rb
sandi_meter-1.0.2 spec/test_classes/15_controller.rb
sandi_meter-1.0.1 spec/test_classes/15_controller.rb
sandi_meter-1.0.0 spec/test_classes/15_controller.rb