Skip to content

Commit

Permalink
more setup and config
Browse files Browse the repository at this point in the history
  • Loading branch information
J Brien Dilts authored and J Brien Dilts committed Oct 15, 2008
1 parent 256734e commit ab8283b
Show file tree
Hide file tree
Showing 24 changed files with 22 additions and 4,611 deletions.
5 changes: 5 additions & 0 deletions README
@@ -1,3 +1,8 @@
Juggernaut Powered Chat Room for Redmine

INSTALLATION:

sudo gem install juggernaut
./script/plugin install http://juggernaut.rubyforge.org/svn/trunk/juggernaut

DETAILS: COMING SOON
5 changes: 3 additions & 2 deletions app/controllers/chat_rooms_controller.rb
@@ -1,6 +1,7 @@
class ChatRoomsController < ApplicationController
before_filter :is_logged_in?
# GET /chat_rooms
unloadable

before_filter :require_login, :except => [:broadcast] # GET /chat_rooms
# GET /chat_rooms.xml
def index
@chat_rooms = ChatRoom.find(:all)
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/chat_users_helper.rb
@@ -1,2 +1,2 @@
module DevsHelper
module UsersHelper
end
2 changes: 1 addition & 1 deletion app/views/chat_rooms/new.html.erb
@@ -1,6 +1,6 @@
<h1>New chat_room</h1>

<% form_for(@chat_room) do |f| %>
<% form_for(@chat_room, {:controller => 'chat_rooms'}) do |f| %>
<%= f.error_messages %>

<p>
Expand Down
11 changes: 9 additions & 2 deletions db/migrate/20081014160039_create_redmine_chat_plugin.rb
@@ -1,4 +1,4 @@
class CreateRedmineDevChat < ActiveRecord::Migration
class CreateRedmineChatPlugin < ActiveRecord::Migration
def self.up
create_table "chat_users", :force => true do |t|
t.integer :user_id
Expand All @@ -16,10 +16,17 @@ def self.up
t.boolean :notice, :default => false
t.boolean :timestamp, :default => false
end

create_table "chat_rooms", :force => true do |t|
t.string "name"
t.string "description"
t.timestamps
end
end

def self.down
drop_table :chat_devs
drop_table :chat_users
drop_table :chat_messages
drop_table :chat_rooms
end
end
Binary file removed engine_plugins/.DS_Store
Binary file not shown.
21 changes: 0 additions & 21 deletions engine_plugins/juggernaut/LICENSE

This file was deleted.

233 changes: 0 additions & 233 deletions engine_plugins/juggernaut/README

This file was deleted.

19 changes: 0 additions & 19 deletions engine_plugins/juggernaut/init.rb

This file was deleted.

0 comments on commit ab8283b

Please sign in to comment.