lib/model.rb in fiveapples-0.0.4 vs lib/model.rb in fiveapples-0.0.5

- old
+ new

@@ -1,11 +1,7 @@ #!/usr/bin/env ruby -require_relative './fiveapples.rb' - -FiveA.startdb - class Cultivar < Sequel::Model(:cultivar) # Navigation attributes one_to_many :parent, :class => :Parentage, :key => :cultivar_id one_to_many :child, :class => :Parentage, :key => :parent_id @@ -38,10 +34,10 @@ title 'Five apples OData API' name 'FiveApplesService' namespace 'ODataFiveApples' path_prefix '/odata' - + enable_batch publish_model Cultivar, :cultivar do add_nav_prop_single :breeder add_nav_prop_collection :parent add_nav_prop_collection :child end