view · edit · sidebar · attach · print · history

20120421-improve-fachinfo-link-display

<< | Index | >>


Summary

Commits

Index


View::Chapter extends Htmlgrid::Value class

value.rb in htmlgrid

module HtmlGrid
  class Value < NamedComponent
    LABEL = true
    def init
      @value = @model.send(@name) if @model.respond_to?(@name)
    end 
  end 
end
Note

about Fachinfo model object

FachinfoDocument and FachinfoDocument2001 are indipendently data and structure. (updated by import)
Fachinfo class has optional chapters (photos and links)

  • Fachinfo
    • FachinfoDocument, FachinfoDocument2011
    • photo
    • links
TODO
  • to refactor photo and link chapters
    • move to state class (data by openstruct)
view · edit · sidebar · attach · print · history
Page last modified on April 21, 2012, at 06:13 PM