Module: InspectorDragit::ActiveRecord::Extend

Defined in:
lib/inspector_dragit/active_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_insp_dragit_attrsObject

Returns the value of attribute class_insp_dragit_attrs.



26
27
28
# File 'lib/inspector_dragit/active_record.rb', line 26

def class_insp_dragit_attrs
  @class_insp_dragit_attrs
end

#class_insp_dragit_templateObject

Returns the value of attribute class_insp_dragit_template.



26
27
28
# File 'lib/inspector_dragit/active_record.rb', line 26

def class_insp_dragit_template
  @class_insp_dragit_template
end

#class_insp_dragit_titleObject

Returns the value of attribute class_insp_dragit_title.



26
27
28
# File 'lib/inspector_dragit/active_record.rb', line 26

def class_insp_dragit_title
  @class_insp_dragit_title
end

Instance Method Details

#go_go_dragit(&block) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/inspector_dragit/active_record.rb', line 32

def go_go_dragit(&block)
  @class_insp_dragit_title = ""
  @class_insp_dragit_attrs = AttributeBuilder.new
  block.call(@class_insp_dragit_title, @class_insp_dragit_attrs)
  @class_insp_dragit_template = {:title => @class_insp_dragit_title,
                                 :attributes => @class_insp_dragit_attrs}
end