fix error
This commit is contained in:
parent
21bb599442
commit
409fb22fd2
|
@ -9,7 +9,7 @@ class Bulletin
|
||||||
include OrbitCategory::Categorizable
|
include OrbitCategory::Categorizable
|
||||||
include Slug
|
include Slug
|
||||||
require 'bulletin_model/cache'
|
require 'bulletin_model/cache'
|
||||||
include ::BulletinModel::Cache
|
include BulletinModel::Cache
|
||||||
attr_accessor :org_tag_ids
|
attr_accessor :org_tag_ids
|
||||||
def tags=(ids)
|
def tags=(ids)
|
||||||
self.org_tag_ids = self.tag_ids
|
self.org_tag_ids = self.tag_ids
|
||||||
|
|
|
@ -3,8 +3,8 @@ module BulletinModel
|
||||||
require 'active_support/concern'
|
require 'active_support/concern'
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
included do
|
included do
|
||||||
before_save :do_before_save
|
after_save :do_before_save
|
||||||
before_destroy :do_before_save
|
after_destroy :do_before_save
|
||||||
end
|
end
|
||||||
def do_before_save
|
def do_before_save
|
||||||
if self.class == SubPart
|
if self.class == SubPart
|
||||||
|
|
Loading…
Reference in New Issue