awesome_back_url 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9124a6f9e157a3daa726f6edbf17c6485b8f23b59892a2ccc2aad9b1d0f0a171
4
- data.tar.gz: 7c2244fe520c116396d249b24c327e453c52fef663bcb7c1a8c662ece330d8a0
3
+ metadata.gz: b258250b23be794910a6c16e2f211213fd31667d89165a70aae46349dca34ad0
4
+ data.tar.gz: eee8a71a22e5f61f712789accc800cb27f41de3e7691f10bedd9a230f3754713
5
5
  SHA512:
6
- metadata.gz: '088fe99640261937b64371e9dc9c15fbb3dff3481e0db860168069999dcad6fbcac9a23a704242dc453744c24e77c32e9a532806a3168f2f18acc1754fa3783d'
7
- data.tar.gz: 52943ae05716d97e657cff84d24f2e0fb3cf555c57532b83ebeb763493a759a2ed9eb0aef4517f3172a56d037961ae07b22f20ed6f899226ad7c2a5b9c04e5ef
6
+ metadata.gz: a2a83f18b99e63f05f255399cc459c818ac6484d8f8cf6749b083bdb69354aa5fca0917f9c0e2ef516c8310cca45d69000d2008f85e1f0c12aaa18cbc6b8a4d2
7
+ data.tar.gz: 01c66012327c54bc28b4abdb6de639244df3d30d010b1d42f7c88d2a424afc52afcd433688be78872798bb6cb465a3991278420b1723ed09916ffd78e635161a
data/README.md CHANGED
@@ -5,11 +5,11 @@ Redirect to proper back URL for your Rails applications. In case if you want to
5
5
  ## Usage
6
6
 
7
7
  ```ruby
8
- awesome_back_path(except: /\/new|\/edit/, fallback: users_path), '/users'
9
- awesome_back_path('/path', except: /\/new|\/edit/, fallback: '/users'), '/path'
10
- awesome_back_path('/path/new', except: /\/new|\/edit/, fallback: '/users'), '/users'
11
- awesome_back_path('/path/edit', except: /\/new|\/edit/, fallback: '/users'), '/users'
12
- awesome_back_path('/path', only: /\/new|\/edit/, fallback: '/users'), '/users'
8
+ link_to 'Back', awesome_back_path(except: /\/new|\/edit/, fallback: users_path) # returns '/users'
9
+ link_to 'Back', awesome_back_path('/path', except: /\/new|\/edit/, fallback: '/users') # returns '/path'
10
+ link_to 'Back', awesome_back_path('/path/new', except: /\/new|\/edit/, fallback: '/users') # returns '/users'
11
+ link_to 'Back', awesome_back_path('/path/edit', except: /\/new|\/edit/, fallback: '/users') # returns '/users'
12
+ link_to 'Back', awesome_back_path('/path', only: /\/new|\/edit/, fallback: '/users') # returns '/users'
13
13
  ```
14
14
 
15
15
  ## Installation
@@ -1,3 +1,3 @@
1
1
  module AwesomeBackUrl
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -32,5 +32,7 @@ module AwesomeBackUrl
32
32
  fallback
33
33
  end
34
34
  end
35
+
36
+ alias :awesome_back_url :awesome_back_path
35
37
  end
36
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_back_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk