Module: Hirb::Views::MiscDb
- Defined in:
- lib/hirb/views/misc_db.rb
Overview
:nodoc:
Instance Method Summary collapse
- #d_b_i__row_view(obj) ⇒ Object
- #friendly__document_view(obj) ⇒ Object
- #ripple__document_view(obj) ⇒ Object
Instance Method Details
#d_b_i__row_view(obj) ⇒ Object
10 11 12 |
# File 'lib/hirb/views/misc_db.rb', line 10 def d_b_i__row_view(obj) {:fields=>obj.column_names, :table_class=>Hirb::Helpers::Table} end |
#friendly__document_view(obj) ⇒ Object
2 3 4 |
# File 'lib/hirb/views/misc_db.rb', line 2 def friendly__document_view(obj) {:fields=>obj.class.attributes.keys - [:id]} end |
#ripple__document_view(obj) ⇒ Object
6 7 8 |
# File 'lib/hirb/views/misc_db.rb', line 6 def ripple__document_view(obj) {:fields=>obj.class.properties.keys} end |