Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Dec 12, 2012
1 parent 274d4ca commit 92105f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 2 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/grape/entities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 92105f2

Please sign in to comment.