karmi / tire-contrib

Additions and extensions for the Tire gem
MIT License
65 stars 31 forks source link

add Tire::Namespace #12

Closed timoschilling closed 11 years ago

timoschilling commented 11 years ago

you can namespace each Index

Tire.configure { namespace "foo" }
Tire.index("bar").name # => "foo-bar"
karmi commented 11 years ago

@timoschilling Can you please squash it into single commit and add more documentation into the Ruby file?

karmi commented 11 years ago

Timo, thanks. I've actually rewrote the extension significantly, so the namespace is reflected across the whole API, not only in Index#name. Let me know if that's OK for your original use case.

timoschilling commented 11 years ago

@karmi it look's great!