lib/npr/entity/list.rb in npr-1.1.0 vs lib/npr/entity/list.rb in npr-1.2.0
- old
+ new
@@ -2,13 +2,11 @@
# NPR::Entity::List
#
module NPR
module Entity
class List < Base
- #------------------
-
- has_many "links", :key => "link", :class_name => NPR::Entity::Link
+ include NPR::Concern::LinksAssociation
has_many "stories", :key => "story", :class_name => NPR::Entity::Story
#------------------
shallow_attribute(
@@ -16,10 +14,10 @@
"teaser",
"miniTeaser"
)
#------------------
-
+
def initialize(json)
extract_shallow_attributes(json)
create_relations(json)
end
end # List