Sha256: 1b6ac8aec8591ae484e7ffda8983c1c89296844b8e3ecb7c817ca9c031a87752

Contents?: true

Size: 323 Bytes

Versions: 16

Compression:

Stored size: 323 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  helper_method :current_participant

  def current_participant
    Participant.find_by_email("p1@example.com")
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_networking-0.13.3 spec/dummy/app/controllers/application_controller.rb
social_networking-0.13.2 spec/dummy/app/controllers/application_controller.rb
social_networking-0.13.1 spec/dummy/app/controllers/application_controller.rb
social_networking-0.13.0 spec/dummy/app/controllers/application_controller.rb
social_networking-0.12.0 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.8 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.7 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.6 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.5 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.4 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.3 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.2 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.1 spec/dummy/app/controllers/application_controller.rb
social_networking-0.11.0 spec/dummy/app/controllers/application_controller.rb
social_networking-0.10.0 spec/dummy/app/controllers/application_controller.rb
social_networking-0.9.3 spec/dummy/app/controllers/application_controller.rb