|
|
|
@ -41,6 +41,7 @@ class Subject < ApplicationRecord
|
|
|
|
|
scope :published, lambda{where(status: 1)}
|
|
|
|
|
scope :unhidden, lambda{where(hidden: 0)}
|
|
|
|
|
scope :publiced, lambda{ where(public: 2) }
|
|
|
|
|
scope :show_moblied, lambda{ where(show_mobile: true) }
|
|
|
|
|
|
|
|
|
|
after_create :send_tiding
|
|
|
|
|
def send_tiding
|
|
|
|
|