flame 4.6.0 → 4.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5455cf09e104a2a654c71f1ea4374f12e3dc5bbf
4
- data.tar.gz: 5775babe34f2cd3bc8beb60611b1e0e24e59224b
3
+ metadata.gz: 4ce4a1b941ab147d4e92afc8024b9b82389312ee
4
+ data.tar.gz: 57a6c28e514f56aff4b2ee5599c2585ce9e0fc70
5
5
  SHA512:
6
- metadata.gz: 2bd0ac08334a9a8fe3cf05b696232ceecf0b70df5b87b9d51e4bb5e786bbcd8fe5fa52997a69460c326289f721e81e4deb733c523dc4282a47d922c53f570da7
7
- data.tar.gz: 03f649bb5418e2f3d00a19655660e450aee8e693558227d99aae3f695ba5a5af0b49c125fa8072a2b408b6947d18507fbd19ba85a1acb2c02524abf661cda5c5
6
+ metadata.gz: bbb044a87d151b6d67a7d37bc0cf84a1b38da2100bfbcb7fabddedb43f5af71464d9f248b423d8ee1923e9dc36bfc6564c1dde0928a0cd4e28c31b33c5dbef60
7
+ data.tar.gz: c549f57dd9e04d9a87435711c32e8b89c3e23817126152c46f55a4c43d27d1ed036998e1d52810c10f9d6850e8256a76e4a90a7da2e5b6d0a4bcf0aa4664b9c5
@@ -58,7 +58,7 @@ module Flame
58
58
 
59
59
  ## Parameters of the request
60
60
  def params
61
- @params ||= request.params.merge(request.params.keys_to_sym(deep: true))
61
+ @params ||= request.params.keys_to_sym(deep: true)
62
62
  end
63
63
 
64
64
  ## Session object as Hash
@@ -90,6 +90,9 @@ module Flame
90
90
  ## @return [String] path for requested method, controller and parameters
91
91
  ## @example Path for `show(id)` method of `ArticlesController` with `id: 2`
92
92
  ## path_to ArticlesController, :show, id: 2 # => "/articles/show/2"
93
+ ## @example Path for `new` method of `ArticlesController` with params
94
+ ## path_to ArticlesController, :new, params: { author_id: 1 }
95
+ ## # => "/articles/new?author_id=1"
93
96
  def path_to(ctrl, action = :index, args = {})
94
97
  route = @app.class.router.find_route(controller: ctrl, action: action)
95
98
  raise Errors::RouteNotFoundError.new(ctrl, action) unless route
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flame
4
- VERSION = '4.6.0'.freeze
4
+ VERSION = '4.6.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack