Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed example syntax from Ruby hash style 1.8 to 1.9

  • Loading branch information...
commit ab712fe88a978f727f5d4122898770ea1113423e 1 parent 6d50d77
@coderhs coderhs authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
4 README.rdoc
@@ -74,7 +74,7 @@ Some example controller actions:
@group = ether.get_group(params[:ep_group_id])
@pad = @group.pad(params[:ep_pad_name])
# Map the user to an EtherpadLite Author
- author = ether.author("my_app_user_#{current_user.id}", :name => current_user.name)
+ author = ether.author("my_app_user_#{current_user.id}", name: current_user.name)
# Get or create an hour-long session for this Author in this Group
sess = session[:ep_sessions][@group.id] ? ether.get_session(session[:ep_sessions][@group.id]) : @group.create_session(author, 60)
if sess.expired?
@@ -83,7 +83,7 @@ Some example controller actions:
end
session[:ep_sessions][@group.id] = sess.id
# Set the EtherpadLite session cookie. This will automatically be picked up by the jQuery plugin's iframe.
- cookies[:sessionID] = {:value => sess.id, :domain => ".yourdomain.com"}
+ cookies[:sessionID] = {value: sess.id, domain: ".yourdomain.com"}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.