From 9cc86f3cd8bc7bdbb9edf987a25fcbcf0af8f3c6 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 8 Aug 2013 17:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4seems=5Fratabale=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 2 +- Gemfile.lock | 2 -- app/models/user.rb | 1 - app/views/layouts/base_users.html.erb | 3 --- db/schema.rb | 21 --------------------- 5 files changed, 1 insertion(+), 28 deletions(-) diff --git a/Gemfile b/Gemfile index f4decb75..6d9bb4ad 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ gem "coderay", "~> 1.0.6" gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby] gem "builder", "3.0.0" gem 'acts-as-taggable-on' -gem 'seems_rateable' + # Optional gem for LDAP authentication group :ldap do gem "net-ldap", "~> 0.3.1" diff --git a/Gemfile.lock b/Gemfile.lock index aa29558c..6713a997 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -98,7 +98,6 @@ GEM rmagick (2.13.2) ruby-openid (2.1.8) rubyzip (0.9.9) - seems_rateable (1.0.9) jquery-rails rails selenium-webdriver (2.33.0) @@ -153,7 +152,6 @@ DEPENDENCIES rdoc (>= 2.4.2) rmagick (>= 2.0.0) ruby-openid (~> 2.1.4) - seems_rateable shoulda (~> 3.3.2) sqlite3 yard diff --git a/app/models/user.rb b/app/models/user.rb index 8050082a..3d71394a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -103,7 +103,6 @@ class User < Principal acts_as_customizable ############################added by william acts_as_taggable - seems_rateable ############################# added by liuping 关注 acts_as_watchable diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index f6abf5e6..35722ed9 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -9,9 +9,6 @@ <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> - - <%= seems_rateable_stylesheet %> - <%= javascript_heads %> <%= heads_for_theme %> diff --git a/db/schema.rb b/db/schema.rb index b0cf9265..356ddec0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -524,27 +524,6 @@ ActiveRecord::Schema.define(:version => 20130807021309) do t.text "permissions" t.string "issues_visibility", :limit => 30, :default => "default", :null => false end - - create_table "seems_rateable_cached_ratings", :force => true do |t| - t.integer "cacheable_id", :limit => 8 - t.string "cacheable_type" - t.float "avg", :null => false - t.integer "cnt", :null => false - t.string "dimension" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "seems_rateable_rates", :force => true do |t| - t.integer "rater_id", :limit => 8 - t.integer "rateable_id" - t.string "rateable_type" - t.float "stars", :null => false - t.string "dimension" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - create_table "settings", :force => true do |t| t.string "name", :default => "", :null => false t.text "value"