lib/janus/models/remote_authenticatable.rb in janus-0.7.0 vs lib/janus/models/remote_authenticatable.rb in janus-0.8.0
- old
+ new
@@ -55,9 +55,11 @@
# add_index :remote_tokens, :token, :unique => true
module RemoteAuthenticatable
extend ActiveSupport::Concern
included do |klass|
+ include Janus::Models::Base unless include?(Janus::Models::Base)
+
begin
attr_protected :session_token
rescue
end
klass.class_eval { has_many :remote_tokens }