lib/thinreports/report/internal.rb in thinreports-0.7.5 vs lib/thinreports/report/internal.rb in thinreports-0.7.6

- old
+ new

@@ -29,13 +29,10 @@ end # @see ThinReports::Report::Base#use_layout def register_layout(layout, options = {}, &block) layout = if options.empty? || options[:default] - if @default_layout - raise ArgumentError, 'The default layout is already set.' - end @default_layout = init_layout(layout) else id = options[:id].to_sym if layout_registry.key?(id) @@ -126,6 +123,6 @@ ThinReports::Layout.new(filename, :id => id) end end end -end \ No newline at end of file +end