Module: TypografRu::ClassMethods
- Defined in:
- lib/typograf_ru.rb
Instance Method Summary collapse
Instance Method Details
#disable_typografy! ⇒ Object
22 23 24 |
# File 'lib/typograf_ru.rb', line 22 def disable_typografy! Manager.clear(self) end |
#typografy(attr, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/typograf_ru.rb', line 13 def typografy(attr, ={}) include InstanceMethods ||= {} Manager.register(self, attr, ) before_save :typografy_before_save end |