Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from bittersweet/master

ActiveRecord 3.2 and up compatibility
  • Loading branch information...
commit 47a07d6df7ddb9391db703e2a7bb41cec2dc54ca 2 parents 0b77a28 + b992e30
Josep M. Bach txus authored
Showing with 6 additions and 8 deletions.
  1. +0 −1  .travis.yml
  2. +5 −5 Readme.md
  3. +1 −2  resort.gemspec
1  .travis.yml
View
@@ -5,4 +5,3 @@ rvm:
- ree
- ruby-head
- rbx
- - rbx-2.0
10 Readme.md
View
@@ -1,4 +1,4 @@
-#resort
+#resort [![Build Status](https://secure.travis-ci.org/codegram/resort.png)](http://travis-ci.org/codegram/resort)
Resort provides sorting capabilities to your Rails 3 models.
@@ -55,15 +55,15 @@ end
### Concurrency
-Multiple users modifying the same list at the same time could be a problem,
+Multiple users modifying the same list at the same time could be a problem,
so it's always a good practice to wrap the changes in a transaction:
-
+
```ruby
Product.transaction do
my_product.append_to(another_product)
end
```
-
+
###API
**Every time a product is created, it will be appended after the last element.**
@@ -157,7 +157,7 @@ You can also build the documentation with the following command:
rake docs
## Note on Patches/Pull Requests
-
+
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
3  resort.gemspec
View
@@ -14,8 +14,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "resort"
- s.add_runtime_dependency 'activerecord', '>= 3.0.5', '< 3.2'
-# s.add_runtime_dependency 'activerecord', '~> 3.0.5'
+ s.add_runtime_dependency 'activerecord', '>= 3.0.5'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'rspec', '~> 2.5.0'
s.add_development_dependency 'yard'
Please sign in to comment.
Something went wrong with that request. Please try again.