lib/thinreports/report/internal.rb in thinreports-0.10.0 vs lib/thinreports/report/internal.rb in thinreports-0.10.1
- old
+ new
@@ -72,10 +72,10 @@
init_layout(id_or_filename)
else
raise ArgumentError, 'Invalid argument for layout.'
end
- @default_layout = layout unless @default_layout
+ @default_layout ||= layout
layout
end
private