Module: Griddle
- Defined in:
- lib/griddle.rb,
lib/griddle/style.rb,
lib/griddle/upfile.rb,
lib/griddle/processor.rb,
lib/griddle/attachment.rb,
lib/griddle/has_grid_attachment.rb,
lib/griddle/processor/image_magick.rb
Defined Under Namespace
Modules: HasGridAttachment, Upfile
Classes: Attachment, Processor, Style
Class Method Summary
collapse
Class Method Details
.database ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/griddle.rb', line 23
def self.database
@database ||= if(defined?(MongoMapper))
MongoMapper.database
else
nil
end
end
|
.database=(database) ⇒ Object
31
32
33
|
# File 'lib/griddle.rb', line 31
def self.database=(database)
@database = database
end
|
.version ⇒ Object
19
20
21
|
# File 'lib/griddle.rb', line 19
def self.version
@version ||= File.read(File.join(File.dirname(__FILE__), "..", "VERSION")).chomp
end
|