Module: Redmine::WikiFormatting::Macros

Defined in:
lib/redmine/wiki_formatting/macros.rb

Class Method Summary collapse

Class Method Details

.register(&block) ⇒ Object


27
28
29
30
# File 'lib/redmine/wiki_formatting/macros.rb', line 27

def register(&block)
  ActiveSupport::Deprecation.warn("Macros are deprecated. Use Liquid filters and tags instead", caller.drop(3))
  class_eval(&block) if block_given?
end