Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,19 @@ Put the following in your gemfile as well:
gem 'SystemTimer'
```

### Rails
### Rails 3

Split is autoloaded when rails starts up, as long as you've configured redis it will 'just work'.

### Rails 2.3

To configure Rails 2.3 with Split you need to mix in the helper methods. Add the following lines to config/initializers.split.rb:

```ruby
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
```

### Sinatra

To configure sinatra with Split you need to enable sessions and mix in the helper methods. Add the following lines at the top of your sinatra app:
Expand Down
2 changes: 1 addition & 1 deletion lib/split.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "split/#{f}"
end

require 'split/engine' if defined?(Rails)
require 'split/engine' if defined?(Rails) && Rails::VERSION::MAJOR >= 3
require 'redis/namespace'

module Split
Expand Down