authentasaurus 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,7 @@ module Authentasaurus::AreasController
58
58
 
59
59
  respond_to do |format|
60
60
  if @area.update_attributes(params[:area])
61
- format.html { redirect_to @area, :notice => "Area updated" }
61
+ format.html { redirect_to :action => :index, :notice => "Area updated" }
62
62
  else
63
63
  flash.now[:alert] = I18n.t(:update_failed, :scope => [:authentasaurus, :messages, :areas])
64
64
  format.html { render :edit }
@@ -58,7 +58,7 @@ module Authentasaurus::GroupsController
58
58
 
59
59
  respond_to do |format|
60
60
  if @group.update_attributes(params[:group])
61
- format.html { redirect_to @group, :notice => "Group updated" }
61
+ format.html { redirect_to :action => :index, :notice => "Group updated" }
62
62
  else
63
63
  flash.now[:alert] = I18n.t(:update_failed, :scope => [:authentasaurus, :messages, :groups])
64
64
  format.html { render :edit }
@@ -59,7 +59,7 @@ module Authentasaurus::PermissionsController
59
59
  respond_to do |format|
60
60
  if @permission.update_attributes(params[:permission])
61
61
  flash.now[:notice] = "Permission updated"
62
- format.html { redirect_to @permission }
62
+ format.html { redirect_to :action => :index }
63
63
  else
64
64
  flash.now[:alert] = I18n.t(:update_failed, :scope => [:authentasaurus, :messages, :permissions])
65
65
  format.html { render :edit }
@@ -58,7 +58,7 @@ module Authentasaurus::UsersController
58
58
 
59
59
  respond_to do |format|
60
60
  if @user.update_attributes(params[:user])
61
- format.html { redirect_to @user, :notice => "User updated" }
61
+ format.html { redirect_to :action => :index, :notice => "User updated" }
62
62
  else
63
63
  flash.now[:alert] = I18n.t(:update_failed, :scope => [:authentasaurus, :messages, :users])
64
64
  format.html { render :edit }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 9
10
- version: 0.5.9
9
+ - 10
10
+ version: 0.5.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky