lib/dashing.rb in dashing-rails-2.0.1 vs lib/dashing.rb in dashing-rails-2.0.2

- old
+ new

@@ -23,7 +23,26 @@ end end end +begin + require 'rails' +rescue LoadError +end + +$stderr.puts <<-EOC if !defined?(Rails) +warning: no framework detected. + +Your Gemfile might not be configured properly. +---- e.g. ---- +Rails: + gem 'dashing-rails' + +EOC + require 'dashing/configuration' -require 'dashing/engine' + +if defined? Rails + require 'dashing/engine' + require 'dashing/railtie' +end