Module: RedisAssist::Associations::ClassMethods

Defined in:
lib/redis_assist/associations.rb

Instance Method Summary collapse

Instance Method Details

#belongs_to(name, opts = {}) ⇒ Object



12
13
14
# File 'lib/redis_assist/associations.rb', line 12

def belongs_to(name, opts={})
  define_belongs_to(name, opts)
end

#has_many(name, opts = {}) ⇒ Object



8
9
10
# File 'lib/redis_assist/associations.rb', line 8

def has_many(name, opts={})
  define_has_many(name, opts)
end