montage_rails 0.4.8 → 0.4.9

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
  SHA1:
3
- metadata.gz: d3c4dab1b1246fe7f35c5a9ad654c8ae6300378c
4
- data.tar.gz: c186acc71a2820497259d145de7bc3422fb34c5c
3
+ metadata.gz: 06e8cf07d3ec35504bdd050b777d625568eb03ac
4
+ data.tar.gz: 0d6213bb3e406a91c34306faeb3141ec8f736e15
5
5
  SHA512:
6
- metadata.gz: f7585be320574a60a4909349d4e1f724f005d132452f060e030b7f57e84ecd0255637dc2255429f77361054aa56f916b125c4e4e09a8cd5a5c56d0ff4daba06d
7
- data.tar.gz: 6ca024d3648565917f2b218cd59e4adc99c0fdbdf86eaa65b66d21d8ebcf86f5b3a0af86166fb664360e88a98f44aedbe57c48c09ec4d4aaeb344f0c74fdfcde
6
+ metadata.gz: 1efcca92094dc2e5a71bd6fb324c5ac9d7da54ded5c2061b206b98cd66e72a99d23fa9ff99a5425ee4982fc0b2888f4a41576ec38242b197ca85c0c6b04c371b
7
+ data.tar.gz: adb21a2db7484ee8e8e4f3fffc8bfb12312f101872afc0b500b6a5fa5db3fc1b2634b035c34db444f9ebd10621e45ca8e27cad01efc3c2f6b9a16d2edd37d219
@@ -54,6 +54,12 @@ module MontageRails
54
54
  map { |r| r.send(column_name.to_sym) }
55
55
  end
56
56
 
57
+ # Create a record based on the query relationship
58
+ #
59
+ def create(params)
60
+ klass.create(params.merge(query[:filter]))
61
+ end
62
+
57
63
  # Utility method to allow viewing of the result set in a console
58
64
  #
59
65
  def inspect
@@ -1,3 +1,3 @@
1
1
  module MontageRails
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
@@ -1074,3 +1074,24 @@ MontageClient: Checkin connection MontageClient:http://testco.dev.montagehot.clu
1074
1074
  Movie Update (300.0ms) c36757f5-b535-46c3-97d1-174a497aed41: {:id=>"c36757f5-b535-46c3-97d1-174a497aed41", :studio_id=>"", :rank=>5, :rating=>4325, :title=>"Foobared 11", :votes=>600, :year=>2001}
1075
1075
  Movie Create (264.2ms) {:studio_id=>nil, :rank=>5, :rating=>4325, :title=>"Foobared 12", :votes=>325445, :year=>2001}
1076
1076
  Movie Update (292.0ms) f70e8dbf-b5bc-470e-839a-e1e5e70109ea: {:id=>"f70e8dbf-b5bc-470e-839a-e1e5e70109ea", :studio_id=>"", :rank=>5, :rating=>4325, :title=>"Foobared 12", :votes=>600, :year=>2001}
1077
+ Movie Load (1616.0ms) {:filter=>{}, :limit=>1}
1078
+ Actor Load (228.0ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
1079
+ Movie Load (265.1ms) {:filter=>{}, :limit=>1}
1080
+ Actor Load (285.5ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
1081
+ Actor Load (350.0ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
1082
+ Movie Load (1931.2ms) {:filter=>{}}
1083
+ Actor Load (388.8ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1084
+ Actor Load (251.5ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1085
+ Actor Load (227.0ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1086
+ Actor Load (252.3ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1087
+ Actor Load (662.2ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1088
+ Actor Load (232.0ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1089
+ Actor Load (245.2ms) {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
1090
+ Movie Load (826.2ms) {:filter=>{}, :limit=>1}
1091
+ Movie Load [CACHE] (0.0ms) {:filter=>{}, :limit=>1}
1092
+ Actor Load (295.4ms) {:filter=>{}}
1093
+ Actor Load (400.9ms) {:filter=>{}}
1094
+ Actor Load (274.2ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
1095
+ Actor Create (427.4ms) {:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24", :name=>"Marty McFly"}
1096
+ Actor Load [CACHE] (0.0ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
1097
+ Actor Load (461.6ms) {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: montage_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - dphaener
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails