lib/jive/oauth_token.rb in jive-oauth_token-0.0.3 vs lib/jive/oauth_token.rb in jive-oauth_token-0.0.4
- old
+ new
@@ -1,9 +1,12 @@
require "active_support"
require "active_support/dependencies"
require "active_record"
+require "jive/add_on"
+require "jive/oauth_token/add_on/class_methods"
+
require "jive/oauth_token/version"
require "jive/oauth_token/compatibility"
require "jive/oauth_token/class_methods"
require "jive/oauth_token/instance_methods"
@@ -12,6 +15,9 @@
class OauthToken < ActiveRecord::Base
end
end
Jive::OauthToken.send :include, Jive::OauthToken::InstanceMethods
-Jive::OauthToken.send :extend, Jive::OauthToken::ClassMethods
+Jive::OauthToken.send :extend, Jive::OauthToken::ClassMethods
+
+# We want add-ons to know they can now associate with OAuthTokens
+Jive::AddOn.send :include, Jive::OauthToken::AddOn::ClassMethods
\ No newline at end of file