rails_rad 1.1.1 → 1.1.2

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: bae6a2b764ea36d569c5adc0afab26939cd28680
4
- data.tar.gz: 696acd295c593bd6db377359d49731c7141a8de0
3
+ metadata.gz: 5f1d9ea84898e58cbca83a41d04deead041e1b3b
4
+ data.tar.gz: 50d09aedc5c25c7babfcc1cc3f3a8b0d4a42a92d
5
5
  SHA512:
6
- metadata.gz: a74dcba9c462426f9e0aaa1d865ceaa78b6452fe32b9e4c1435a8682715f40555ee580a5084f2d46a41dd4f2879b07890517f0db5ea3b4a6c62f3d0a3b6f1d26
7
- data.tar.gz: a35d74f5a7e3856b40c1d959113c5ef49a66f3ee9ea9ba56987ebb49a8a5b22eb640507a853965b929477425d15645d1aa8112c6f433e5eb0edad0920f6fbcda
6
+ metadata.gz: 5a5daeff64e8b5719bf2980cf27349ef9fc26768086f92f9ef4e07e91605d9fddbf15e80ecb39b6e12f044799bc3e37932360076151b620a369264be21275bea
7
+ data.tar.gz: 70904796f40c65db6665d4bd3e23fe0180936dabd3d6179ebb4ff0544bee8edab6178abc24ad1a822ef4eb607765067e803ab81f16123342817967e481b6cc15
@@ -10,19 +10,19 @@ module Controller
10
10
  end
11
11
 
12
12
  def collection_path
13
- url_for(controller: controller_path, action: :index)
13
+ url_for(controller: controller_path, action: :index, only_path: true)
14
14
  end
15
15
 
16
16
  def new_resource_path
17
- url_for(controller: controller_path, action: :new)
17
+ url_for(controller: controller_path, action: :new, only_path: true)
18
18
  end
19
19
 
20
20
  def edit_resource_path(resource)
21
- url_for(controller: controller_path, action: :edit, id: resource.send(to_param_method))
21
+ url_for(controller: controller_path, action: :edit, id: resource.send(to_param_method), only_path: true)
22
22
  end
23
23
 
24
24
  def resource_path(resource)
25
- url_for(controller: controller_path, action: :show, id: resource.send(to_param_method))
25
+ url_for(controller: controller_path, action: :show, id: resource.send(to_param_method), only_path: true)
26
26
  end
27
27
 
28
28
  def to_param_method
@@ -58,7 +58,7 @@ module Controller
58
58
  end
59
59
 
60
60
  def load_collection
61
- collection_scope
61
+ collection_scope.all
62
62
  end
63
63
 
64
64
  def load_scope
@@ -1,3 +1,3 @@
1
1
  module RailsRad
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_rad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-20 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails