added hidden and show
This commit is contained in:
1 parent
e6c7b932aa
commit
5af9cfe9e2
7 files changed
+61
-9
No files matched your search
@@ -1,6 +1,7 @@
|
||||
class TableEntry
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include OrbitModel::Status
|
||||
include Slug
|
||||
|
||||
attr_accessor :sort_value
|
||||
@@ -14,6 +15,7 @@ class TableEntry
|
||||
has_and_belongs_to_many :table_tags, inverse_of: :table_entries
|
||||
|
||||
accepts_nested_attributes_for :column_entries, :allow_destroy => true
|
||||
scope :can_display, ->{where(:is_hidden.ne=>true)}
|
||||
|
||||
I18n.available_locales.each do |locale|
|
||||
index({"have_data.#{locale}" => 1}, { unique: false, background: true })
|
||||
|
||||
Reference in new issue
Block a user