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
hirber-0.8.7 lib/hirb/views/misc_db.rb
hirber-0.8.6 lib/hirb/views/misc_db.rb
hirber-0.8.5 lib/hirb/views/misc_db.rb
hirber-0.8.4 lib/hirb/views/misc_db.rb
hirber-0.8.2 lib/hirb/views/misc_db.rb
hirber-0.8.1 lib/hirb/views/misc_db.rb
hirber-0.8.0 lib/hirb/views/misc_db.rb
hirb-0.7.3 lib/hirb/views/misc_db.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
hirb-0.7.2 lib/hirb/views/misc_db.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/misc_db.rb
hirb-0.7.1 lib/hirb/views/misc_db.rb
hirb-0.7.0 lib/hirb/views/misc_db.rb
hirb-0.6.2 lib/hirb/views/misc_db.rb