README.md in turf-1.0.0 vs README.md in turf-1.1.0
- old
+ new
@@ -47,24 +47,24 @@
end
end
# Turf::Local is the first place Turf looks for a
# matching method
-Turf.find(:something) # => "something in local"
+Turf.something # => "something in local"
# The RAILS_ENV is set to production, so Turf looks
# in Turf::Production second if the method is not
# found in Turf::Local
# Turf::Development is ignored in production
-Turf.find(:blah) # => "blah in production"
+Turf.blah # => "blah in production"
# Turf::Default is the last place to look
-Turf.find(:four) # => 4
+Turf.four # => 4
# Turf raises an exception when it can't find
# a matching method
-Turf.find(:hi_there) # => raises an exception
+Turf.hi_there # => raises an exception
```
## Setup
Add this line to your application's Gemfile:
@@ -97,10 +97,10 @@
```ruby
require_relative "../config/turf/default.rb"
def require_all(pattern)
- Dir.glob("#{Turf.find(:root)}/#{pattern}/**/*.rb").sort.each { |path| require path }
+ Dir.glob("#{Turf.root}/#{pattern}/**/*.rb").sort.each { |path| require path }
end
require_all("config/turf")
```