lib/ury_rapid/model/component_inserter.rb
# Create a stock model component using the component creator
# @return [void]
Create a stock model component using the component creator
Create a stock model component using the component creator
def component(type, id, *args, &block)
        new_component = @component_creator.send(type, *args)
        @view.insert(@url, id, new_component)
        child_url = "#{@url.chomp('/')}/#{id}"
        build_children(child_url, &block) unless block.nil?
      end
def component ( type , id , * args , & block ) new_component = @component_creator . send ( type , * args ) @view . insert ( @url , id , new_component ) child_url = "#{@url.chomp('/')}/#{id}" build_children ( child_url , & block ) unless block . nil? end
Create a stock model component using the component creator
Create a stock model component using the component creator
None
void
type
id
args
block