Module: ActiveRecord::GdocsBootstrapExt::ClassMethods
- Defined in:
- lib/gdocs_bootstrap.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap! ⇒ Object
85 86 87 |
# File 'lib/gdocs_bootstrap.rb', line 85 def bootstrap! gdocs_bootstraps.each { |b| b.bootstrap! } end |
#clear_bootstraps ⇒ Object
81 82 83 |
# File 'lib/gdocs_bootstrap.rb', line 81 def clear_bootstraps self.gdocs_bootstraps = [] end |
#gdocs_bootstrap(options = {}) ⇒ Object
75 76 77 78 79 |
# File 'lib/gdocs_bootstrap.rb', line 75 def gdocs_bootstrap( = {}) self.gdocs_bootstraps ||= [] [:target_class_name] ||= self.class_name gdocs_bootstraps << GdocsBootstrap.new() end |