lib/role-rails/engine.rb in role-rails-1.2.0 vs lib/role-rails/engine.rb in role-rails-1.2.1
- old
+ new
@@ -1,7 +1,13 @@
module RoleRails
class Engine < ::Rails::Engine
initializer "role-rails.register" do |app|
- defined?(Slim::Parser) && Slim::Parser.default_options[:shortcut].try(:[]=, '@', 'div role')
+ if defined?(Slim::Parser)
+ Slim::Parser.default_options[:shortcut].try(:[]=, '@', 'role')
+ end
+
+ if defined?(Slim::Engine)
+ Slim::Engine.default_options[:attr_delimiter].try(:[]=, 'role', ' ')
+ end
end
end
end