Permalink
Browse files

Using Inboxes 0.2.0

  • Loading branch information...
1 parent f286219 commit 6d1809c6d2d4850280b3b2a45c3665c214d11608 @kirs committed Jan 17, 2012
Showing with 19 additions and 10 deletions.
  1. +1 −1 Gemfile
  2. +6 −7 Gemfile.lock
  3. +0 −1 README.md
  4. +3 −1 app/views/layouts/application.html.erb
  5. +9 −0 db/migrate/20120117125907_upgrade_discussible_inboxes.rb
View
@@ -1,7 +1,7 @@
source 'http://rubygems.org'
gem 'rails', '3.1.1'
-gem 'rake', "0.8.7"
+# gem 'rake', "0.8.7"
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
View
@@ -1,8 +1,8 @@
GIT
remote: git://github.com/evrone/inboxes.git
- revision: a90563c861d541b3e87b1b61160d4b11f450de5a
+ revision: 31ae06c27640026488c1f16a3dd6e5e7260eb426
specs:
- inboxes (0.1.5)
+ inboxes (0.2.0)
cancan
haml-rails
@@ -84,7 +84,7 @@ GEM
jquery-rails (1.0.16)
railties (~> 3.0)
thor (~> 0.14)
- json (1.6.3)
+ json (1.6.5)
libv8 (3.3.10.4)
mail (2.3.0)
i18n (>= 0.4.0)
@@ -98,7 +98,7 @@ GEM
polyglot (0.3.2)
powder (0.1.7)
thor (>= 0.11.5)
- rack (1.3.5)
+ rack (1.3.6)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
@@ -122,8 +122,8 @@ GEM
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
- rake (0.8.7)
- rdoc (3.11)
+ rake (0.9.2.2)
+ rdoc (3.12)
json (~> 1.4)
sass (3.1.10)
sass-rails (3.1.4)
@@ -170,7 +170,6 @@ DEPENDENCIES
pg
powder
rails (= 3.1.1)
- rake (= 0.8.7)
sass-rails (~> 3.1.4)
sqlite3
therubyracer
View
@@ -2,7 +2,6 @@
An example Rails 3.1.1 app that works with [Inboxes gem](https://github.com/evrone/inboxes). Tested on MRI 1.8.7 and REE.
-
##Authors
- [Kir Shatrov](https://github.com/kirs/) (Evrone Company)
@@ -13,7 +13,9 @@
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %>
<%= content_tag :h1, yield(:title) if show_title? %>
- Unread messages: <%= @unread_discussions_count %>
+ <% if user_signed_in? %>
+ Unread messages: <%= @unread_discussions_count %>
+ <% end %>
<%= yield %>
</div>
@@ -0,0 +1,9 @@
+class UpgradeDiscussibleInboxes < ActiveRecord::Migration
+ def self.change
+ add_column :discussions, :discussible_id, :integer
+ end
+
+ def self.down
+ remove_column :discussions, :discussible_id
+ end
+end

0 comments on commit 6d1809c

Please sign in to comment.