Skip to content

Commit

Permalink
Associations::Config is now Associations::Base
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed May 16, 2013
1 parent f042a24 commit f5de334
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/active_model/serializer/associations.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ActiveModel
class Serializer
module Associations #:nodoc:
class Config #:nodoc:
class Base #:nodoc:
def initialize(name, options={}, serializer_options={})
@name = name
@options = options
Expand Down Expand Up @@ -60,7 +60,7 @@ def find_serializable(object)
attr_reader :options, :serializer_options
end

class HasMany < Config #:nodoc:
class HasMany < Base #:nodoc:
def key
if key = options[:key]
key
Expand Down Expand Up @@ -102,7 +102,7 @@ def serialize_ids
end
end

class HasOne < Config #:nodoc:
class HasOne < Base #:nodoc:
def embeddable?
if polymorphic? && associated_object.nil?
false
Expand Down

0 comments on commit f5de334

Please sign in to comment.