Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo.

  • Loading branch information...
commit 92105f22bdc2cea589e7c72a10d3257b3fded6d9 1 parent 274d4ca
@huacnlee huacnlee authored
Showing with 4 additions and 8 deletions.
  1. +1 −1  Gemfile
  2. +2 −6 Gemfile.lock
  3. +1 −1  app/grape/entities.rb
View
2  Gemfile
@@ -62,7 +62,7 @@ gem 'faye-rails','1.0.0'
gem 'newrelic_rpm'
# 分享功能
-gem "social-share-button", "~> 0.0.9", :path => "../social-share-button"
+gem "social-share-button", "~> 0.0.7"
# 表单
gem 'simple_form', "2.0.2"
View
8 Gemfile.lock
@@ -10,11 +10,6 @@ GIT
rack
rack-mount
-PATH
- remote: ../social-share-button
- specs:
- social-share-button (0.0.9)
-
GEM
remote: http://ruby.taobao.org/
specs:
@@ -321,6 +316,7 @@ GEM
simple_form (2.0.2)
actionpack (~> 3.0)
activemodel (~> 3.0)
+ social-share-button (0.0.8)
sprite-factory (1.4.1)
sprockets (2.2.1)
hike (~> 1.2)
@@ -412,7 +408,7 @@ DEPENDENCIES
settingslogic (~> 2.0.6)
sidekiq (= 2.5.3)
simple_form (= 2.0.2)
- social-share-button (~> 0.0.9)!
+ social-share-button (~> 0.0.7)
sprite-factory (= 1.4.1)
thin
turbo-sprockets-rails3 (= 0.3.2)
View
2  app/grape/entities.rb
@@ -27,7 +27,7 @@ class DetailUser < Grape::Entity
end
end
expose(:topics, :unless => { :collection => true }) do |model, opts|
- model.topics.recent.limit(opts[:topics_limit] ||= 1).as_json(:only => [:_id, :title, :created_at, :node_name, :replies_count])
+ model.topics.recent.limit(opts[:topics_limit] ||= 1).as_json(:only => [:id, :title, :created_at, :node_name, :replies_count])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.