Sha256: db9316723d4a9d27020dee8981cec05f47f8ee59928f9e4c7bfc26dd580d2ee4

Contents?: true

Size: 345 Bytes

Versions: 17

Compression:

Stored size: 345 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

  # some fake helpers here
  def current_user=(user = User.last)
    @current_user = user
  end

  def current_user
    @current_user
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
lazy_crud-0.9.8.4 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.8.3 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.8.2 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.8.1 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.8.0 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.7.1 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.7 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.6 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.5 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.4 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.3 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.2 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.1 spec/support/rails_app/app/controllers/application_controller.rb
lazy_crud-0.9.0 spec/support/rails_app/app/controllers/application_controller.rb
authorizable-0.9.2 spec/support/rails_app/app/controllers/application_controller.rb
authorizable-0.9.1 spec/support/rails_app/app/controllers/application_controller.rb
authorizable-0.9.0 spec/support/rails_app/app/controllers/application_controller.rb