Sha256: 144407ad4a0ea9d1fcab7de87187abbd6c0b8d2f951a355054d33dd1ac366e39

Contents?: true

Size: 377 Bytes

Versions: 42

Compression:

Stored size: 377 Bytes

Contents

module Hirb::Views::MiscDb #:nodoc:
  def friendly__document_view(obj)
    {:fields=>obj.class.attributes.keys - [:id]}
  end

  def ripple__document_view(obj)
    {:fields=>obj.class.properties.keys}
  end

  def d_b_i__row_view(obj)
    {:fields=>obj.column_names, :table_class=>Hirb::Helpers::Table}
  end
end

Hirb::DynamicView.add Hirb::Views::MiscDb, :helper=>:auto_table

Version data entries

42 entries across 41 versions & 5 rubygems

Version Path
hirb-0.6.1 lib/hirb/views/misc_db.rb
hsume2-hirb-0.6.3 lib/hirb/views/misc_db.rb
hsume2-hirb-0.6.2 lib/hirb/views/misc_db.rb
hsume2-hirb-0.6.1 lib/hirb/views/misc_db.rb
hsume2-hirb-0.6.0.beta.1 lib/hirb/views/misc_db.rb
hirb-0.6.0 lib/hirb/views/misc_db.rb
hirb-0.5.0 lib/hirb/views/misc_db.rb
hirb-0.4.5 lib/hirb/views/misc_db.rb
hirb-0.4.4 lib/hirb/views/misc_db.rb
hirb-0.4.3 lib/hirb/views/misc_db.rb
hirb-0.4.2 lib/hirb/views/misc_db.rb
hirb-0.4.1 lib/hirb/views/misc_db.rb
hirb-0.4.0 lib/hirb/views/misc_db.rb
hirb-0.3.6 lib/hirb/views/misc_db.rb
bbcloud-0.8.1 lib/bbcloud/vendor/hirb-0.3.4/lib/hirb/views/misc_db.rb
hirb-0.3.5 lib/hirb/views/misc_db.rb
bbcloud-0.6.2 lib/bbcloud/vendor/hirb/lib/hirb/views/misc_db.rb
hirb-0.3.4 lib/hirb/views/misc_db.rb
hirb-0.3.3 lib/hirb/views/misc_db.rb
hirb-0.3.2 lib/hirb/views/misc_db.rb