Skip to content

Commit a18d840

Browse files
committed
Fix method redefined warning
This fixes the following warning: omniauth-radius-rails/lib/kracken/config.rb:14: warning: method redefined; discarding old user_class It would be good to fix things to support customizing the user class for long term flexibility, but it was changed due to some issues with Rails autoloading retaining old class references. Instead we document it is likely deprecated and that the reader returns the static constant now.
1 parent 2517dde commit a18d840

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/kracken/config.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
module Kracken
22
class Config
3-
attr_accessor :app_id, :app_secret, :user_class
3+
attr_accessor :app_id, :app_secret
44
attr_writer :provider_url
55

6+
# @deprecated the associated reader returns static `::User`
7+
attr_writer :user_class
8+
69
def initialize
710
@user_class = nil
811
end

0 commit comments

Comments
 (0)