Removed dependency to Rails 3.0