lib/bbq.rb in bbq-0.0.4 vs lib/bbq.rb in bbq-0.1.0

- old
+ new

@@ -1,21 +1,17 @@ require 'pathname' module Bbq - def self.root - @root ||= Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..'))) - end + class << self + def root + @root ||= Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..'))) + end - def self.rails? - defined?(::Rails) - end + def rails? + defined?(::Rails) + end - def self.app - Capybara.app + attr_accessor :app end - - def self.app=(new_app) - Capybara.app=(new_app) - end end -require 'bbq/railtie' if Bbq.rails? \ No newline at end of file +require 'bbq/railtie' if Bbq.rails?