localized_scaffold 0.9 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -276,7 +276,7 @@ class <%= controller_class_name %>Controller < ApplicationController
276
276
  flash[:error] = t('<%= file_name %>.errors.not_found')
277
277
 
278
278
  respond_to do |format|
279
- format.html { redirect_to(defined?(home_path) ? home_path : '/') }
279
+ format.html { redirect_to root_path }
280
280
  format.xml { head 404 }
281
281
  format.json { head 404 }
282
282
  end
@@ -298,7 +298,7 @@ class <%= controller_class_name %>Controller < ApplicationController
298
298
  flash[:error] = _('<%= belongsto.file_name %>.errors.not_found')
299
299
 
300
300
  respond_to do |format|
301
- format.html { redirect_to(defined?(home_path) ? home_path : '/') }
301
+ format.html { redirect_to root_path }
302
302
  format.xml { head 404 }
303
303
  format.json { head 404 }
304
304
  end
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- version: "0.9"
8
+ - 1
9
+ version: 0.9.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Jan Ulbrich