module PostJson

Why all the ugly naming you might ask? Well, it will be fixed, but for now it is preventing a conflict with the naming of JSON attributes

Constants

VERSION

Public Class Methods

setup(collection_name, &block) click to toggle source
# File lib/post_json.rb, line 18
def setup(collection_name, &block)
  collection = Collection[collection_name]
  collection.transaction do
    block.call(collection)
  end
end