lib/remarkable_rails.rb in remarkable_rails-3.1.8 vs lib/remarkable_rails.rb in remarkable_rails-3.1.9
- old
+ new
@@ -1,34 +1,34 @@
-# Load Remarkable
-unless Object.const_defined?('Remarkable')
- begin
- require 'remarkable'
- rescue LoadError
- require 'rubygems'
- gem 'remarkable'
- require 'remarkable'
- end
-end
-
-# Load spec/rails
-if defined?(Spec)
- begin
- require 'spec/rails'
- rescue LoadError
- require 'rubygems'
- gem 'rspec-rails'
- require 'spec/rails'
- end
-end
-
-# Load Remarkable Rails base files
-dir = File.dirname(__FILE__)
-require File.join(dir, 'remarkable_rails', 'active_orm')
-require File.join(dir, 'remarkable_rails', 'action_controller')
-require File.join(dir, 'remarkable_rails', 'action_view')
-
-# Load locale file
-Remarkable.add_locale File.join(dir, '..', 'locale', 'en.yml')
+# Load Remarkable
+unless Object.const_defined?('Remarkable')
+ begin
+ require 'remarkable'
+ rescue LoadError
+ require 'rubygems'
+ gem 'remarkable'
+ require 'remarkable'
+ end
+end
+
+# Load spec/rails
+if defined?(Spec)
+ begin
+ require 'spec/rails'
+ rescue LoadError
+ require 'rubygems'
+ gem 'rspec-rails'
+ require 'spec/rails'
+ end
+end
+
+# Load Remarkable Rails base files
+dir = File.dirname(__FILE__)
+require File.join(dir, 'remarkable_rails', 'active_orm')
+require File.join(dir, 'remarkable_rails', 'action_controller')
+require File.join(dir, 'remarkable_rails', 'action_view')
+
+# Load locale file
+Remarkable.add_locale File.join(dir, '..', 'locale', 'en.yml')
# Load plugin files if RAILS_ROOT is defined. It loads files at:
#
# RAILS_ROOT/spec/remarkable
# RAILS_ROOT/vendor/gems/*/remarkable
# RAILS_ROOT/vendor/plugins/*/remarkable