Module: Cms::Behaviors::Attaching

Defined in:
lib/cms/behaviors/attaching.rb

Defined Under Namespace

Modules: InstanceMethods, MacroMethods

Constant Summary collapse

SANITIZATION_REGEXES =
[ [/\s/, '_'], [/[&+()]/, '-'], [/[=?!'"{}\[\]#<>%]/, ''] ]

Class Method Summary collapse

Class Method Details

.included(model_class) ⇒ Object



6
7
8
# File 'lib/cms/behaviors/attaching.rb', line 6

def self.included(model_class)
  model_class.extend(MacroMethods)
end