add support for rails 2

Rails 2, does have the Rails module defined, but no .application method.