forked from davidcelis/recommendable
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Celis
committed
Jan 25, 2012
1 parent
0ebcd93
commit eea92c9
Showing
5 changed files
with
113 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Description: | ||
Explain the generator | ||
|
||
Example: | ||
rails generate install Thing | ||
|
||
This will create: | ||
what/will/it/create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
Recommendable.user_class = <%= user_class %> | ||
Recommendable.redis_host = <%= redis_host %> | ||
Recommendable.redis_port = <%= redis_port %> | ||
Recommendable.redis_socket = <%= redis_socket %> | ||
# What class will be liking/disliking objects and receiving recommendations? | ||
Recommendable.user_class = <%= user_class %> | ||
# Recommendable requires a connection to a running redis-server. Either create | ||
# a new instance based on a host/port or UNIX socket, or pass in an existing | ||
# Redis client instance. | ||
<% if redis_socket %>#<% end %>Recommendable.redis = Redis.new(:host => <%= redis_host %>, :port => <%= redis_port %>) | ||
|
||
# Connect to Redis via a UNIX socket instead | ||
<% unless redis_socket %>#<% end %> Recommendable.redis = Redis.new(:sock => <%= redis_socket %>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters