Module: FoursquareDocument

Defined in:
lib/foursquare_document.rb,
lib/foursquare_document/config.rb,
lib/foursquare_document/version.rb

Defined Under Namespace

Modules: ClassMethods, Config

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/foursquare_document.rb', line 41

def self.included(base)
  # no need for activesupport::concern
  base.send :extend, ClassMethods

  base.class_eval do
    embeds_one :foursquare_cache, :as => :fs_doc
  end
end