Class: BugHunter::Project

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/bug_hunter/models.rb

Class Method Summary collapse

Class Method Details

.instanceObject



193
194
195
196
197
198
199
# File 'lib/bug_hunter/models.rb', line 193

def self.instance
  if project = BugHunter::Project.first
    project
  else
    BugHunter::Project.create
  end
end