Skip to content

Commit d553870

Browse files
committed
Setting up mongomapper
1 parent 4236b9c commit d553870

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ gem 'sqlite3'
55
gem 'json'
66

77
gem 'haml'
8+
gem 'mongo_mapper'
9+
gem 'bson_ext'
810

911
# Gems used only for assets and not required
1012
# in production environments by default.

Gemfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ GEM
3232
multi_json (~> 1.0)
3333
arel (2.2.1)
3434
bcrypt-ruby (2.1.4)
35+
bson (1.3.1)
36+
bson_ext (1.3.1)
3537
builder (3.0.0)
3638
coffee-rails (3.1.0.rc.6)
3739
coffee-script (>= 2.2.0)
@@ -56,7 +58,15 @@ GEM
5658
mime-types (~> 1.16)
5759
treetop (~> 1.4.8)
5860
mime-types (1.16)
61+
mongo (1.3.1)
62+
bson (>= 1.3.1)
63+
mongo_mapper (0.9.1)
64+
activemodel (~> 3.0)
65+
activesupport (~> 3.0)
66+
plucky (~> 0.3.8)
5967
multi_json (1.0.3)
68+
plucky (0.3.8)
69+
mongo (~> 1.3)
6070
polyglot (0.3.2)
6171
rack (1.3.2)
6272
rack-cache (1.0.2)
@@ -113,10 +123,12 @@ PLATFORMS
113123
ruby
114124

115125
DEPENDENCIES
126+
bson_ext
116127
coffee-rails (~> 3.1.0.rc)
117128
haml
118129
jquery-rails
119130
json
131+
mongo_mapper
120132
rails (= 3.1.0.rc6)
121133
sass-rails (~> 3.1.0.rc)
122134
sqlite3
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
%h1 API Home!
1+
%h1 Welcome to the Hackety Hack API!
2+
3+

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Application < Rails::Application
2424

2525
# you can also specify a different test framework or ORM here
2626
# g.test_framework :rspec
27-
# g.orm :mongoid
27+
g.orm :mongo_mapper
2828
end
2929
end
3030
end

0 commit comments

Comments
 (0)