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

- old
+ new

@@ -1,8 +1,12 @@ require 'rails' -module Role - module Rails - class Engine < ::Rails::Engine +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 end end end