|
|
|
@@ -16,8 +16,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
class EduSetting < ApplicationRecord
|
|
|
|
after_commit :expire_value_cache
|
|
|
|
after_destroy :clear_value_cache
|
|
|
|
after_commit :expire_value_cache, on: [:create, :update]
|
|
|
|
after_commit :clear_value_cache, on: :destroy
|
|
|
|
|
|
|
|
scope :by_search, -> (keyword){ where("name LIKE :keyword OR value LIKE :keyword", keyword: "%#{strip_param(keyword)}%") unless strip_param(keyword).blank? }
|
|
|
|
|
|
|
|
|