D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
hirb-0.7.3
/
lib
/
hirb
/
views
/
Filename :
orm.rb
back
Copy
module Hirb::Views::ORM #:nodoc: def data_mapper__resource_view(obj) {:fields=>obj.class.properties.map {|e| e.name }} end def sequel__model_view(obj) {:fields=>obj.class.columns} end end Hirb::DynamicView.add Hirb::Views::ORM, :helper=>:auto_table