Module: Hirb::Views::ORM

Defined in:
lib/hirb/views/orm.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#data_mapper__resource_view(obj) ⇒ Object



2
3
4
# File 'lib/hirb/views/orm.rb', line 2

def data_mapper__resource_view(obj)
  {:fields=>obj.class.properties.map {|e| e.name }}
end

#sequel__model_view(obj) ⇒ Object



6
7
8
# File 'lib/hirb/views/orm.rb', line 6

def sequel__model_view(obj)
  {:fields=>obj.class.columns}
end