view_models 1.5.3 → 1.5.4
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.
- data/VERSION.yml +1 -1
- data/lib/extensions/active_record.rb +6 -0
- data/spec/integration/integration_spec.rb +0 -3
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -6,6 +6,12 @@ module ViewModels
|
|
6
6
|
module Extensions
|
7
7
|
module ActiveRecord
|
8
8
|
|
9
|
+
# id and param are simply delegated to the model.
|
10
|
+
#
|
11
|
+
# This makes it possible to use the view_model
|
12
|
+
# for e.g. url generation:
|
13
|
+
# * edit_user_path(view_model)
|
14
|
+
#
|
9
15
|
delegate :id, :to_param, :to => :model
|
10
16
|
|
11
17
|
# Delegate to the action controller record identifier.
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 1.5.
|
8
|
+
- 4
|
9
|
+
version: 1.5.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Florian Hanke
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-03-
|
20
|
+
date: 2010-03-02 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|