lib/representable/definition.rb in representable-1.2.8 vs lib/representable/definition.rb in representable-1.2.9
- old
+ new
@@ -18,10 +18,10 @@
def setter
:"#{name}="
end
def typed?
- sought_type.is_a?(Class) or representer_module # also true if only :extend is set, for people who want solely rendering.
+ sought_type.is_a?(Class) or representer_module or options[:instance] # also true if only :extend is set, for people who want solely rendering.
end
def array?
options[:collection]
end