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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 5
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 1
@@ -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.
@@ -41,9 +41,6 @@ describe 'Integration' do
41
41
  @model = SubSubclass.new
42
42
  @model.id = :some_id
43
43
  @view_model = ViewModels::SubSubclass.new @model, @view
44
- # rescue Exception => e
45
- # puts e.message
46
- # puts e.backtrace
47
44
  end
48
45
  end
49
46
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 3
9
- version: 1.5.3
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-01 00:00:00 +01:00
20
+ date: 2010-03-02 00:00:00 +01:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency