Include another concern inside of the `included` block.

Akinori MUSHA 10 年 前
コミット
2f01eb017c
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      app/concerns/twitter_concern.rb

+ 2 - 1
app/concerns/twitter_concern.rb

@@ -1,8 +1,9 @@
1 1
 module TwitterConcern
2 2
   extend ActiveSupport::Concern
3
-  include Oauthable
4 3
 
5 4
   included do
5
+    include Oauthable
6
+
6 7
     validate :validate_twitter_options
7 8
     valid_oauth_providers :twitter
8 9
   end