Sha256: d09310f203fe3069d51400fa03ab76279b3f550b021e434c69d114008fc5e78b

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module CastleDevise
  module Patches
    class << self
      # Applies monkey-patches to Devise controllers
      # @api private
      def apply
        Devise::RegistrationsController.send(:prepend, Patches::RegistrationsController)
        Devise::PasswordsController.send(:prepend, Patches::PasswordsController)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
castle_devise-0.4.3 lib/castle_devise/patches.rb
castle_devise-0.4.1 lib/castle_devise/patches.rb
castle_devise-0.3.0 lib/castle_devise/patches.rb
castle_devise-0.2.0 lib/castle_devise/patches.rb