Module: Trackman::Scaffold::ContentSaver
- Defined in:
- lib/trackman/scaffold/content_saver.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/trackman/scaffold/content_saver.rb', line 6 def self.included(base) class << base attr_accessor :nodes_to_remove, :nodes_to_edit, :text_to_edit, :mappings end base.nodes_to_remove = {} base.nodes_to_edit = {} base.text_to_edit = {} if defined?(Rails) base.mappings = { :maintenance => '503', :maintenance_error => '503-error', :not_found => '404', :error => '500' } else base.mappings = {} end base.extend ClassMethods end |