Sha256: ff8b5a12b261033a3ea31a69206fa857882e0c3669d00b15d6b83452bec92b30
Contents?: true
Size: 801 Bytes
Versions: 9
Compression:
Stored size: 801 Bytes
Contents
require 'clearance' Clearance.configure do |config| end class ApplicationController < ActionController::Base include Clearance::Authentication end class User < ActiveRecord::Base include Clearance::User end module Clearance module Test module Redirects def redirect_to_url_after_create redirect_to(@controller.send(:url_after_create)) end def redirect_to_url_after_update redirect_to(@controller.send(:url_after_update)) end def redirect_to_url_after_destroy redirect_to(@controller.send(:url_after_destroy)) end def redirect_to_url_already_confirmed redirect_to(@controller.send(:url_already_confirmed)) end end end end RSpec.configure do |config| config.include Clearance::Test::Redirects end
Version data entries
9 entries across 9 versions & 1 rubygems