Class: BlogConfiguration

Inherits:
Configuration
  • Object
show all
Defined in:
app/models/blog_configuration.rb

Class Method Summary collapse

Class Method Details

.currentObject



3
4
5
6
# File 'app/models/blog_configuration.rb', line 3

def self.current
  self.create if self.count == 0
  self.first
end