New UI changes(tags, categories, authorisations, module index…)
To run: - ruby lib/remove_old_tags.rb DB_NAME - rake new_ui:migrate_tags - rake new_ui:migrate_categories['APP_KEY,''MODEL_NAME'] (check new_ui.rake for more details)
This commit is contained in:
1 parent
07b3857465
commit
856898016b
1495 files changed
+52132
-9876
No files matched your search
+10
-11
@@ -1,19 +1,18 @@
|
||||
class GalleryAlbum
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include Mongoid::Timestamps
|
||||
|
||||
include OrbitTag::Taggable
|
||||
taggable
|
||||
|
||||
field :name, localize: true
|
||||
field :description, localize: true
|
||||
field :cover, default: "default"
|
||||
field :cover_path #can refact
|
||||
field :tag_names
|
||||
field :name, localize: true
|
||||
field :description, localize: true
|
||||
field :cover, default: "default"
|
||||
field :cover_path #can refact
|
||||
field :tag_names
|
||||
|
||||
belongs_to :gallery_category
|
||||
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
|
||||
has_many :gallery_images, :autosave => true, :dependent => :destroy
|
||||
accepts_nested_attributes_for :gallery_images, :allow_destroy => true
|
||||
belongs_to :gallery_category
|
||||
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
|
||||
has_many :gallery_images, :autosave => true, :dependent => :destroy
|
||||
accepts_nested_attributes_for :gallery_images, :allow_destroy => true
|
||||
|
||||
end
|
||||
@@ -2,7 +2,6 @@ class GalleryImage
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include OrbitTag::Taggable
|
||||
taggable
|
||||
|
||||
mount_uploader :file, GalleryUploader
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class GalleryTag < Tag
|
||||
|
||||
has_and_belongs_to_many :gallery_albums
|
||||
has_and_belongs_to_many :gallery_images
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user