Sha256: 086b86a3b20bec7a78eff8675400b6ef2e56827a42e6b13292275384247c1214

Contents?: true

Size: 387 Bytes

Versions: 42

Compression:

Stored size: 387 Bytes

Contents

module Hirb::Views::CouchDb #:nodoc:
  def default_couch(obj)
    {:fields=>([:_id] + obj.class.properties.map {|e| e.name }) }
  end

  alias_method :couch_rest__extended_document_view, :default_couch
  alias_method :couch_foo__base_view, :default_couch
  alias_method :couch_potato__persistence_view, :default_couch
end

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

Version data entries

42 entries across 41 versions & 5 rubygems

Version Path
hirber-0.8.7 lib/hirb/views/couch_db.rb
hirber-0.8.6 lib/hirb/views/couch_db.rb
hirber-0.8.5 lib/hirb/views/couch_db.rb
hirber-0.8.4 lib/hirb/views/couch_db.rb
hirber-0.8.2 lib/hirb/views/couch_db.rb
hirber-0.8.1 lib/hirb/views/couch_db.rb
hirber-0.8.0 lib/hirb/views/couch_db.rb
hirb-0.7.3 lib/hirb/views/couch_db.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
hirb-0.7.2 lib/hirb/views/couch_db.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/views/couch_db.rb
hirb-0.7.1 lib/hirb/views/couch_db.rb
hirb-0.7.0 lib/hirb/views/couch_db.rb
hirb-0.6.2 lib/hirb/views/couch_db.rb