Sha256: c071a4c04f5103f6509d94ee9414705f694da2733170e5304dd2af9523b9c510

Contents?: true

Size: 339 Bytes

Versions: 12

Compression:

Stored size: 339 Bytes

Contents

class Settings
  include Mongoid::Document
  include Mongoid::Timestamps
  include PublicActivity::Model
  
  # Columns
  field :var, :type => String
  field :value, :type => String
  
  index({var: 1}, {unique: true})

  tracked owner: ->(controller, model) { controller.try(:current_user) }

  def self.table_exists?
    true
  end
end 

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sunrise-cms-1.0.6 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.5 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.4 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.3 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.2 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.1 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.0 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.0.rc3 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.0.rc2 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-1.0.0.rc1 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/models/mongoid/settings.rb