* getting ready to create a easy websocket starter mechanism that starts websocket whenever you run jam-web

This commit is contained in:
Seth Call 2012-09-01 16:12:02 -05:00
parent 4f8f4f392a
commit 2b951aec0d
4 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ doc/
.project
.DS_Store
.idea
*.iml

View File

@ -0,0 +1,8 @@
<li>
<%= gravatar_for user, size: 52 %>
<%= link_to user.name, user %>
<% if current_user.admin? && !current_user?(user) %>
| <%= link_to "delete", user, method: :delete,
data: { confirm: "You sure?" } %>
<% end %>
</li>

View File

@ -64,5 +64,8 @@ module SampleApp
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# Runs the websocket gateway within the web app
config.run_websocket_gateway = true
end
end

View File

@ -0,0 +1,7 @@
# if we are instructed to start the websocket gateway, do so
if Rails.application.config.run_websocket_gateway
puts "starting websocket gateway..."
puts "not really..."
end