roshiro/openws_one

View on GitHub
app/models/openws/general_document.rb

Summary

Maintainability
A
0 mins
Test Coverage
# namespace for Openws
module Openws
  # Model representing any dinamic collection
  class GeneralDocument
    include Mongoid::Document
    include Mongoid::Attributes::Dynamic

    def self.namespaced_collection(coll)
      "public.#{coll}"
    end
  end
end