lib/perus/server/admin.rb in perus-0.1.1 vs lib/perus/server/admin.rb in perus-0.1.2

- old
+ new

@@ -38,10 +38,11 @@ if #{redirect_to_record} redirect url_prefix + 'admin/#{plural}/' + @record.id.to_s else redirect url_prefix + 'admin/#{plural}' end + return rescue end end @form = Form.new(@record) @@ -60,9 +61,10 @@ @record = #{klass}.with_pk!(params['id']) if @record.valid? begin @record.update(params[:record]) redirect url_prefix + 'admin/#{plural}' + return rescue end end @form = Form.new(@record)