Sha256: f0107a21ad2d4730d41c395a2ff4ef81316bf9fa494163f3d6de76485f60aa49

Contents?: true

Size: 244 Bytes

Versions: 4

Compression:

Stored size: 244 Bytes

Contents

module DummyControllers
  def current_user
    @current_user ||= DummyUser.first_or_create!
    @current_user.can_read = true
    @current_user.can_edit = true
    @current_user
  end
end

ActionController::Base.send :include, DummyControllers

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-5.1.0 spec/dummy/lib/dummy_controllers.rb
commontator-5.0.0 spec/dummy/lib/dummy_controllers.rb
commontator-4.11.1 spec/dummy/lib/dummy_controllers.rb
commontator-4.11.0 spec/dummy/lib/dummy_controllers.rb