kilt-cms 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +59 -15
- data/test/dummy/config/kilt/{creds.yml → creds.yml.example} +0 -0
- metadata +6 -38
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/uploads/file/Gemfile +0 -3
- data/test/dummy/public/uploads/file/Gemfile.lock +0 -139
- data/test/dummy/public/uploads/file/README.rdoc +0 -28
- data/test/dummy/public/uploads/file/Rakefile +0 -6
- data/test/dummy/public/uploads/file/barcelona.jpg +0 -0
- data/test/dummy/public/uploads/file/dodgerstadiumpix.jpg +0 -0
- data/test/dummy/public/uploads/file/field.jpg +0 -0
- data/test/dummy/public/uploads/file/fob-elton-john-08.jpg +0 -0
- data/test/dummy/public/uploads/file/kilt.gemspec +0 -32
- data/test/dummy/public/uploads/file/kilt.rb +0 -100
- data/test/dummy/public/uploads/image/2960116125_1158ba3c59_o.jpg +0 -0
- data/test/dummy/public/uploads/image/JT.jpg +0 -0
- data/test/dummy/public/uploads/image/barcelona.jpg +0 -0
- data/test/dummy/public/uploads/image/dodgerstadiumpix.jpg +0 -0
- data/test/dummy/public/uploads/image/field.jpg +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d697b5810a2977b73a3c56d1bd9b399c5ddfc41
|
4
|
+
data.tar.gz: ec2098c0c2826afe4563f690d73dfb3b6688e690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 359a420f92a7b9cb48f5a41095ca75eefebab4041af2a18819c86fb8c67a01bcd9694cc1d28bf990d3818fe589d86751e901e2c3a8260a1795e418fd3e19294f
|
7
|
+
data.tar.gz: 878825baa35a41360c3b12b1a899637b85712030c31fc91de4dbbc9db01313e93627a2c0c0de3c7853f784ad8cf4888cff1b1afb04092df5f00aacd6b77695f2
|
data/README.rdoc
CHANGED
@@ -1,28 +1,72 @@
|
|
1
|
-
|
1
|
+
- Create a new Rails project without a database:
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
$ rails new Blah -O
|
4
|
+
|
5
|
+
- Add the Kilt CMS gem to your Gemfile:
|
5
6
|
|
6
|
-
|
7
|
+
gem 'kilt-cms'
|
8
|
+
|
9
|
+
- Run bundler:
|
7
10
|
|
8
|
-
|
11
|
+
$ bundle install
|
9
12
|
|
10
|
-
|
13
|
+
- Require "kilt" in your application.rb:
|
11
14
|
|
12
|
-
|
15
|
+
module Blah
|
16
|
+
class Application < Rails::Application
|
17
|
+
require 'kilt'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
Note: We're trying to find a way around that last step, but for now we're just explicitly adding it since we can't figure out how to get it to auto-load all of Kilt's dependency gems when starting the app.
|
22
|
+
|
23
|
+
- Run the Kilt generator:
|
13
24
|
|
14
|
-
|
25
|
+
$ rails g kilt:install
|
26
|
+
|
27
|
+
- Create a creds file:
|
15
28
|
|
16
|
-
|
29
|
+
$ mv config/kilt/creds.yml.example config/kilt/creds.yml
|
30
|
+
|
31
|
+
- Add your database info to the creds.yml. You should have a RethinkDB set up and running already.
|
17
32
|
|
18
|
-
|
33
|
+
- If you want to use S3 for your image and file uploads, add your S3 info to creds.yml. Also set the following in your config.yml:
|
19
34
|
|
20
|
-
|
35
|
+
storage:
|
36
|
+
strategy: s3
|
37
|
+
|
38
|
+
- If you want to just have file and image uploads be placed in the public/uploads directory, set the following in your config.yml:
|
21
39
|
|
22
|
-
|
40
|
+
storage:
|
41
|
+
strategy: local
|
42
|
+
|
43
|
+
- Run the app:
|
23
44
|
|
24
|
-
|
45
|
+
$ rails s
|
46
|
+
|
47
|
+
- Visit the CMS:
|
25
48
|
|
49
|
+
http://<your app>/admin
|
50
|
+
|
51
|
+
- Note that there's a single object created (bagpipe). Click around and see all the field types. Create some bagpipe objects.
|
26
52
|
|
27
|
-
|
28
|
-
|
53
|
+
- Use the Kilt rake task to see what all you can do with Kilt in your controllers and views:
|
54
|
+
|
55
|
+
$ rake kilt
|
56
|
+
|
57
|
+
- Create a new object type:
|
58
|
+
|
59
|
+
$ rails g kilt:object <object name> <field name>:<field type> <field name>:<field type> <field name>:<field type>
|
60
|
+
|
61
|
+
Example:
|
62
|
+
|
63
|
+
$ rails g kilt:object person name:text address:text bio:longtext avatar:image
|
64
|
+
|
65
|
+
- Go back to /admin and you'll see the new object type. Click around and add some objects of that type.
|
66
|
+
|
67
|
+
- From here, try using it on the front-end by creating controllers and views like you would in any other rails app. Instead of calling to a database, though, use the Kilt methods found in the rake taske, or listed on the homepage.
|
68
|
+
|
69
|
+
- Dig around the code looking for holes/problems/questions, and keep a list, please.
|
70
|
+
|
71
|
+
|
72
|
+
|
File without changes
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kilt-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashe Avenue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -315,27 +315,11 @@ files:
|
|
315
315
|
- test/dummy/config/initializers/session_store.rb
|
316
316
|
- test/dummy/config/initializers/wrap_parameters.rb
|
317
317
|
- test/dummy/config/kilt/config.yml
|
318
|
-
- test/dummy/config/kilt/creds.yml
|
318
|
+
- test/dummy/config/kilt/creds.yml.example
|
319
319
|
- test/dummy/config/routes.rb
|
320
320
|
- test/dummy/config.ru
|
321
321
|
- test/dummy/log/development.log
|
322
322
|
- test/dummy/log/test.log
|
323
|
-
- test/dummy/public/favicon.ico
|
324
|
-
- test/dummy/public/uploads/file/barcelona.jpg
|
325
|
-
- test/dummy/public/uploads/file/dodgerstadiumpix.jpg
|
326
|
-
- test/dummy/public/uploads/file/field.jpg
|
327
|
-
- test/dummy/public/uploads/file/fob-elton-john-08.jpg
|
328
|
-
- test/dummy/public/uploads/file/Gemfile
|
329
|
-
- test/dummy/public/uploads/file/Gemfile.lock
|
330
|
-
- test/dummy/public/uploads/file/kilt.gemspec
|
331
|
-
- test/dummy/public/uploads/file/kilt.rb
|
332
|
-
- test/dummy/public/uploads/file/Rakefile
|
333
|
-
- test/dummy/public/uploads/file/README.rdoc
|
334
|
-
- test/dummy/public/uploads/image/2960116125_1158ba3c59_o.jpg
|
335
|
-
- test/dummy/public/uploads/image/barcelona.jpg
|
336
|
-
- test/dummy/public/uploads/image/dodgerstadiumpix.jpg
|
337
|
-
- test/dummy/public/uploads/image/field.jpg
|
338
|
-
- test/dummy/public/uploads/image/JT.jpg
|
339
323
|
- test/dummy/Rakefile
|
340
324
|
- test/dummy/spec/kilt_spec.rb
|
341
325
|
- test/dummy/spec/spec_helper.rb
|
@@ -454,27 +438,11 @@ test_files:
|
|
454
438
|
- test/dummy/config/initializers/session_store.rb
|
455
439
|
- test/dummy/config/initializers/wrap_parameters.rb
|
456
440
|
- test/dummy/config/kilt/config.yml
|
457
|
-
- test/dummy/config/kilt/creds.yml
|
441
|
+
- test/dummy/config/kilt/creds.yml.example
|
458
442
|
- test/dummy/config/routes.rb
|
459
443
|
- test/dummy/config.ru
|
460
444
|
- test/dummy/log/development.log
|
461
445
|
- test/dummy/log/test.log
|
462
|
-
- test/dummy/public/favicon.ico
|
463
|
-
- test/dummy/public/uploads/file/barcelona.jpg
|
464
|
-
- test/dummy/public/uploads/file/dodgerstadiumpix.jpg
|
465
|
-
- test/dummy/public/uploads/file/field.jpg
|
466
|
-
- test/dummy/public/uploads/file/fob-elton-john-08.jpg
|
467
|
-
- test/dummy/public/uploads/file/Gemfile
|
468
|
-
- test/dummy/public/uploads/file/Gemfile.lock
|
469
|
-
- test/dummy/public/uploads/file/kilt.gemspec
|
470
|
-
- test/dummy/public/uploads/file/kilt.rb
|
471
|
-
- test/dummy/public/uploads/file/Rakefile
|
472
|
-
- test/dummy/public/uploads/file/README.rdoc
|
473
|
-
- test/dummy/public/uploads/image/2960116125_1158ba3c59_o.jpg
|
474
|
-
- test/dummy/public/uploads/image/barcelona.jpg
|
475
|
-
- test/dummy/public/uploads/image/dodgerstadiumpix.jpg
|
476
|
-
- test/dummy/public/uploads/image/field.jpg
|
477
|
-
- test/dummy/public/uploads/image/JT.jpg
|
478
446
|
- test/dummy/Rakefile
|
479
447
|
- test/dummy/spec/kilt_spec.rb
|
480
448
|
- test/dummy/spec/spec_helper.rb
|
File without changes
|
@@ -1,139 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
kilt (0.0.1)
|
5
|
-
compass-rails
|
6
|
-
jquery-rails
|
7
|
-
jquery-ui-rails
|
8
|
-
rails (= 4.0.1)
|
9
|
-
rails_config
|
10
|
-
rethinkdb
|
11
|
-
sass-rails
|
12
|
-
uglifier
|
13
|
-
|
14
|
-
GEM
|
15
|
-
remote: http://rubygems.org/
|
16
|
-
specs:
|
17
|
-
actionmailer (4.0.1)
|
18
|
-
actionpack (= 4.0.1)
|
19
|
-
mail (~> 2.5.4)
|
20
|
-
actionpack (4.0.1)
|
21
|
-
activesupport (= 4.0.1)
|
22
|
-
builder (~> 3.1.0)
|
23
|
-
erubis (~> 2.7.0)
|
24
|
-
rack (~> 1.5.2)
|
25
|
-
rack-test (~> 0.6.2)
|
26
|
-
activemodel (4.0.1)
|
27
|
-
activesupport (= 4.0.1)
|
28
|
-
builder (~> 3.1.0)
|
29
|
-
activerecord (4.0.1)
|
30
|
-
activemodel (= 4.0.1)
|
31
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
32
|
-
activesupport (= 4.0.1)
|
33
|
-
arel (~> 4.0.0)
|
34
|
-
activerecord-deprecated_finders (1.0.3)
|
35
|
-
activesupport (4.0.1)
|
36
|
-
i18n (~> 0.6, >= 0.6.4)
|
37
|
-
minitest (~> 4.2)
|
38
|
-
multi_json (~> 1.3)
|
39
|
-
thread_safe (~> 0.1)
|
40
|
-
tzinfo (~> 0.3.37)
|
41
|
-
arel (4.0.1)
|
42
|
-
atomic (1.1.14)
|
43
|
-
better_errors (1.0.1)
|
44
|
-
coderay (>= 1.0.0)
|
45
|
-
erubis (>= 2.6.6)
|
46
|
-
binding_of_caller (0.7.2)
|
47
|
-
debug_inspector (>= 0.0.1)
|
48
|
-
builder (3.1.4)
|
49
|
-
callsite (0.0.11)
|
50
|
-
chunky_png (1.2.9)
|
51
|
-
coderay (1.1.0)
|
52
|
-
compass (0.12.2)
|
53
|
-
chunky_png (~> 1.2)
|
54
|
-
fssm (>= 0.2.7)
|
55
|
-
sass (~> 3.1)
|
56
|
-
compass-rails (1.1.2)
|
57
|
-
compass (>= 0.12.2)
|
58
|
-
debug_inspector (0.0.2)
|
59
|
-
erubis (2.7.0)
|
60
|
-
execjs (2.0.2)
|
61
|
-
fssm (0.2.10)
|
62
|
-
hike (1.2.3)
|
63
|
-
i18n (0.6.9)
|
64
|
-
jquery-rails (3.0.4)
|
65
|
-
railties (>= 3.0, < 5.0)
|
66
|
-
thor (>= 0.14, < 2.0)
|
67
|
-
jquery-ui-rails (4.1.1)
|
68
|
-
railties (>= 3.1.0)
|
69
|
-
json (1.8.1)
|
70
|
-
mail (2.5.4)
|
71
|
-
mime-types (~> 1.16)
|
72
|
-
treetop (~> 1.4.8)
|
73
|
-
meta_request (0.2.8)
|
74
|
-
callsite
|
75
|
-
rack-contrib
|
76
|
-
railties
|
77
|
-
mime-types (1.25.1)
|
78
|
-
minitest (4.7.5)
|
79
|
-
multi_json (1.8.2)
|
80
|
-
polyglot (0.3.3)
|
81
|
-
rack (1.5.2)
|
82
|
-
rack-contrib (1.1.0)
|
83
|
-
rack (>= 0.9.1)
|
84
|
-
rack-test (0.6.2)
|
85
|
-
rack (>= 1.0)
|
86
|
-
rails (4.0.1)
|
87
|
-
actionmailer (= 4.0.1)
|
88
|
-
actionpack (= 4.0.1)
|
89
|
-
activerecord (= 4.0.1)
|
90
|
-
activesupport (= 4.0.1)
|
91
|
-
bundler (>= 1.3.0, < 2.0)
|
92
|
-
railties (= 4.0.1)
|
93
|
-
sprockets-rails (~> 2.0.0)
|
94
|
-
rails_config (0.3.3)
|
95
|
-
activesupport (>= 3.0)
|
96
|
-
railties (4.0.1)
|
97
|
-
actionpack (= 4.0.1)
|
98
|
-
activesupport (= 4.0.1)
|
99
|
-
rake (>= 0.8.7)
|
100
|
-
thor (>= 0.18.1, < 2.0)
|
101
|
-
rake (10.1.0)
|
102
|
-
rethinkdb (1.11.0.1)
|
103
|
-
json
|
104
|
-
ruby-protocol-buffers
|
105
|
-
ruby-protocol-buffers (1.5.1)
|
106
|
-
sass (3.2.12)
|
107
|
-
sass-rails (4.0.1)
|
108
|
-
railties (>= 4.0.0, < 5.0)
|
109
|
-
sass (>= 3.1.10)
|
110
|
-
sprockets-rails (~> 2.0.0)
|
111
|
-
sprockets (2.10.1)
|
112
|
-
hike (~> 1.2)
|
113
|
-
multi_json (~> 1.0)
|
114
|
-
rack (~> 1.0)
|
115
|
-
tilt (~> 1.1, != 1.3.0)
|
116
|
-
sprockets-rails (2.0.1)
|
117
|
-
actionpack (>= 3.0)
|
118
|
-
activesupport (>= 3.0)
|
119
|
-
sprockets (~> 2.8)
|
120
|
-
thor (0.18.1)
|
121
|
-
thread_safe (0.1.3)
|
122
|
-
atomic
|
123
|
-
tilt (1.4.1)
|
124
|
-
treetop (1.4.15)
|
125
|
-
polyglot
|
126
|
-
polyglot (>= 0.3.1)
|
127
|
-
tzinfo (0.3.38)
|
128
|
-
uglifier (2.3.3)
|
129
|
-
execjs (>= 0.3.0)
|
130
|
-
json (>= 1.8.0)
|
131
|
-
|
132
|
-
PLATFORMS
|
133
|
-
ruby
|
134
|
-
|
135
|
-
DEPENDENCIES
|
136
|
-
better_errors
|
137
|
-
binding_of_caller
|
138
|
-
kilt!
|
139
|
-
meta_request
|
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,32 +0,0 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
|
3
|
-
# Describe your gem and declare its dependencies:
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = "kilt"
|
6
|
-
s.version = "0.0.1"
|
7
|
-
s.authors = ["Ashe Avenue"]
|
8
|
-
s.email = ["community@asheavenue.com"]
|
9
|
-
s.homepage = "http://www.asheavenue.com"
|
10
|
-
s.summary = "Microsite Platform"
|
11
|
-
s.description = "Microsite Platform"
|
12
|
-
|
13
|
-
s.files = Dir["{app,config,lib}/**/*"] + ["Rakefile", "README.rdoc"]
|
14
|
-
s.test_files = Dir["test/**/*"]
|
15
|
-
|
16
|
-
s.add_dependency 'rails', '4.0.1'
|
17
|
-
s.add_dependency 'rethinkdb'
|
18
|
-
s.add_dependency 'rails_config'
|
19
|
-
s.add_dependency 'jquery-rails'
|
20
|
-
s.add_dependency 'jquery-ui-rails'
|
21
|
-
s.add_dependency 'sass-rails'
|
22
|
-
s.add_dependency 'compass-rails'
|
23
|
-
s.add_dependency 'uglifier'
|
24
|
-
|
25
|
-
s.add_development_dependency 'better_errors'
|
26
|
-
s.add_development_dependency 'binding_of_caller'
|
27
|
-
s.add_development_dependency 'meta_request'
|
28
|
-
|
29
|
-
s.required_ruby_version = '>= 2.0.0'
|
30
|
-
|
31
|
-
|
32
|
-
end
|
@@ -1,100 +0,0 @@
|
|
1
|
-
require "kilt/base"
|
2
|
-
|
3
|
-
# Include the Rethink shortcut module, which will among other things instantiate a new
|
4
|
-
# Rethink object (as "r") if needed
|
5
|
-
include RethinkDB::Shortcuts
|
6
|
-
|
7
|
-
module Kilt
|
8
|
-
|
9
|
-
# Hold the config object
|
10
|
-
mattr_accessor :config
|
11
|
-
|
12
|
-
# Auto-generated endpoints
|
13
|
-
def self.method_missing(method, *args)
|
14
|
-
begin
|
15
|
-
|
16
|
-
if Utils.is_singular? method.to_s
|
17
|
-
# Get the configuration for a type
|
18
|
-
# Example: Kilt.event
|
19
|
-
Kilt.config.objects[method]
|
20
|
-
else
|
21
|
-
# Get a list of objects
|
22
|
-
# Example: Kilt.events
|
23
|
-
Kilt.get_collection method.to_s
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
# Get the list of types
|
29
|
-
# Returns: array of type names
|
30
|
-
# Example: Kilt.types
|
31
|
-
def self.types
|
32
|
-
Kilt.config.objects.map { |key, value| key.to_s }
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
# Create an object
|
37
|
-
# Returns: boolean
|
38
|
-
# Example: Kilt.create(object)
|
39
|
-
def self.create(object)
|
40
|
-
object['created_at'] = object['updated_at'] = Time.now
|
41
|
-
result = Utils.db do
|
42
|
-
r.db(Kilt.config.db.db).table('objects').insert(object.values).run
|
43
|
-
end
|
44
|
-
(result['errors'] == 0)
|
45
|
-
end
|
46
|
-
|
47
|
-
# Update an object
|
48
|
-
# Returns: boolean
|
49
|
-
# Example: Kilt.update(object)
|
50
|
-
def self.update(slug, object)
|
51
|
-
object['updated_at'] = Time.now
|
52
|
-
result = Utils.db do
|
53
|
-
r.db(Kilt.config.db.db).table('objects').filter({'slug' => "#{slug}"}).update(object.values).run
|
54
|
-
end
|
55
|
-
(result['errors'] == 0)
|
56
|
-
end
|
57
|
-
|
58
|
-
|
59
|
-
# Delete an object
|
60
|
-
# Returns: boolean
|
61
|
-
# Example: Kilt.delete('some-object')
|
62
|
-
def self.delete(slug)
|
63
|
-
result = Utils.db do
|
64
|
-
r.db(Kilt.config.db.db).table('objects').filter({'slug' => "#{slug}"}).delete().run
|
65
|
-
end
|
66
|
-
(result['errors'] == 0)
|
67
|
-
end
|
68
|
-
|
69
|
-
# Get the content for a specific object
|
70
|
-
# Returns: Kilt::Object instance
|
71
|
-
# Example: Kilt.object('big-event')
|
72
|
-
def self.get(slug)
|
73
|
-
# connect to the db, get the object, close the connection, return the object
|
74
|
-
results = Utils.db do
|
75
|
-
r.db(Kilt.config.db.db).table('objects').filter({'slug' => slug}).limit(1).run
|
76
|
-
end
|
77
|
-
|
78
|
-
# Get the values
|
79
|
-
values = results.to_a.first
|
80
|
-
|
81
|
-
# create an object and return it
|
82
|
-
Kilt::Object.new(values['type'], values)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Get a list of objects
|
86
|
-
# Returns: array of hashes
|
87
|
-
# Example: Kilt.objects('events')
|
88
|
-
# Used directly or via method_missing
|
89
|
-
def self.get_collection(object_type)
|
90
|
-
# connect to the db, get the date, close the connection, return the array
|
91
|
-
results = Utils.db do
|
92
|
-
r.db(Kilt.config.db.db).table('objects').filter({'type' => "#{object_type.singularize.to_s}"}).run
|
93
|
-
end
|
94
|
-
|
95
|
-
# create an object collection
|
96
|
-
Kilt::ObjectCollection.new(results.to_a)
|
97
|
-
end
|
98
|
-
|
99
|
-
end
|
100
|
-
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|