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 +4 -4
- data/lib/montage_rails/relation.rb +6 -0
- data/lib/montage_rails/version.rb +1 -1
- data/test/dummy/log/development.log +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e8cf07d3ec35504bdd050b777d625568eb03ac
|
4
|
+
data.tar.gz: 0d6213bb3e406a91c34306faeb3141ec8f736e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -1074,3 +1074,24 @@ MontageClient: Checkin connection MontageClient:http://testco.dev.montagehot.clu
|
|
1074
1074
|
[1m[35mMovie Update (300.0ms)[0m 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
|
[1m[36mMovie Create (264.2ms)[0m [1m{:studio_id=>nil, :rank=>5, :rating=>4325, :title=>"Foobared 12", :votes=>325445, :year=>2001}[0m
|
1076
1076
|
[1m[35mMovie Update (292.0ms)[0m 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
|
+
[1m[36mMovie Load (1616.0ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
1078
|
+
[1m[35mActor Load (228.0ms)[0m {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
|
1079
|
+
[1m[36mMovie Load (265.1ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
1080
|
+
[1m[35mActor Load (285.5ms)[0m {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
|
1081
|
+
[1m[36mActor Load (350.0ms)[0m [1m{:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}[0m
|
1082
|
+
[1m[35mMovie Load (1931.2ms)[0m {:filter=>{}}
|
1083
|
+
[1m[36mActor Load (388.8ms)[0m [1m{:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}[0m
|
1084
|
+
[1m[35mActor Load (251.5ms)[0m {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
|
1085
|
+
[1m[36mActor Load (227.0ms)[0m [1m{:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}[0m
|
1086
|
+
[1m[35mActor Load (252.3ms)[0m {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
|
1087
|
+
[1m[36mActor Load (662.2ms)[0m [1m{:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}[0m
|
1088
|
+
[1m[35mActor Load (232.0ms)[0m {:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}
|
1089
|
+
[1m[36mActor Load (245.2ms)[0m [1m{:filter=>{:movie_id=>"8c997687-374e-4120-9e46-bddf7b72f528"}}[0m
|
1090
|
+
[1m[35mMovie Load (826.2ms)[0m {:filter=>{}, :limit=>1}
|
1091
|
+
[1m[36mMovie Load [CACHE] (0.0ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
1092
|
+
[1m[35mActor Load (295.4ms)[0m {:filter=>{}}
|
1093
|
+
[1m[36mActor Load (400.9ms)[0m [1m{:filter=>{}}[0m
|
1094
|
+
[1m[35mActor Load (274.2ms)[0m {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
|
1095
|
+
[1m[36mActor Create (427.4ms)[0m [1m{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24", :name=>"Marty McFly"}[0m
|
1096
|
+
[1m[35mActor Load [CACHE] (0.0ms)[0m {:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}
|
1097
|
+
[1m[36mActor Load (461.6ms)[0m [1m{:filter=>{:movie_id=>"02290fa2-6a62-4910-9074-d97641dceb24"}}[0m
|
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.
|
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-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|