Module: Og::MemoryUtils
- Included in:
- MemoryStore, MemoryStore
- Defined in:
- lib/og/store/alpha/memory.rb
Overview
A collection of utilities. Mainly to stay compatible with the SQL based backends.
WARNING: This store does not yet support all Og features.
Instance Method Summary collapse
-
#join_table(class1, class2, postfix = nil) ⇒ Object
FIXME: find a neutral name.
- #quote(val) ⇒ Object
-
#table(klass) ⇒ Object
FIXME: find a neutral name.
Instance Method Details
#join_table(class1, class2, postfix = nil) ⇒ Object
FIXME: find a neutral name.
21 22 23 |
# File 'lib/og/store/alpha/memory.rb', line 21 def join_table(class1, class2, postfix = nil) "#{class1}#{class2}" end |
#quote(val) ⇒ Object
25 26 27 |
# File 'lib/og/store/alpha/memory.rb', line 25 def quote(val) val.inspect end |
#table(klass) ⇒ Object
FIXME: find a neutral name.
15 16 17 |
# File 'lib/og/store/alpha/memory.rb', line 15 def table(klass) klass.to_s end |