anytime 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ class AnytimeController < ActionController::Base
19
19
  sign_in user if defined?(user) and user
20
20
  sign_in admin if defined?(admin) and admin
21
21
  end
22
+
22
23
  redirect_to :back
23
24
  end
24
25
 
@@ -21,11 +21,11 @@ module AnytimeHelper
21
21
  end
22
22
 
23
23
  def freeze_path
24
- url_for :controller => 'anytime', :action => 'freeze', :only_path => true
24
+ url_for :controller => 'anytime', :action => 'freeze'
25
25
  end
26
26
 
27
27
  def unfreeze_path
28
- url_for :controller => 'anytime', :action => 'unfreeze', :only_path => true
28
+ url_for :controller => 'anytime', :action => 'unfreeze'
29
29
  end
30
30
 
31
31
  def active_environments
data/lib/config/routes.rb CHANGED
@@ -4,8 +4,8 @@ require "active_support/core_ext/hash/slice"
4
4
  module ActionDispatch::Routing
5
5
  class Mapper
6
6
  def routes_anytime_to(path_name)
7
- match path_name.to_s => 'anytime#freeze', :via => :post
8
- match 'un' + path_name.to_s => 'anytime#unfreeze', :via => :post
7
+ match path_name.to_s => 'anytime#freeze'
8
+ match 'un' + path_name.to_s => 'anytime#unfreeze'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anytime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: