rkh / sinatra-reloader

Advanced code reloader for Sinatra
67 stars 1 forks source link

also reload in classic style apps #4

Closed kouky closed 14 years ago

kouky commented 14 years ago

How would you go about using also_reload and dont_reload in classic style sinatra applications?

I'm getting errors when invoking them.

rkh commented 14 years ago

Something like: configure { |c| c.also_reload "*.rb" } I could add those method to the delegates for the next release, though I don't like cluttering Kernel/Object.

victusfate commented 14 years ago

nice.

since this is the default (ezmode entry into sinatra for old people like me), would it be ok to stick this example in the readme?

rkh commented 14 years ago

done

victusfate commented 14 years ago

worked like a charm, no more killing/restarting messiness. More bugs will be smashed thanks to this project.

rkh commented 14 years ago

I'm glad it's useful for you.

kouky commented 14 years ago

definitely does work like a charm. just enable the reloader under the development environment.