lib/role-rails/engine.rb in role-rails-1.1.0 vs lib/role-rails/engine.rb in role-rails-1.2.0

- old
+ new

@@ -1,12 +1,7 @@ -require 'rails' - module RoleRails class Engine < ::Rails::Engine initializer "role-rails.register" do |app| - if defined?(Slim::Engine) - Slim::Engine.default_options[:shortcut] ||= {} - Slim::Engine.default_options[:shortcut].merge!('@' => 'div role') - end + defined?(Slim::Parser) && Slim::Parser.default_options[:shortcut].try(:[]=, '@', 'div role') end end end