plugins/inquiry/app/helpers/inquiry/inquiries_helper.rb
# This method creates a div with data needed attributes. The content is loaded via ajax by PollingService
This method creates a div with data needed attributes. The content is loaded via ajax by PollingService
This method creates a div with data needed attributes . The content is loaded via ajax by PollingService
def remote_inquiries(options={})
      container_id = options[:container_id]
      content_tag(:div, id: container_id) do
        content_tag(:div, '', data: {
          update_path: plugin('inquiry').inquiries_path({
            container_id: container_id,
            per_page: (options[:per_page] || Inquiry::Inquiry.default_per_page),
            filter: (options[:filter] || {}),
            partial: true
          }),
          update_immediately: true
        })
      end
    end
def remote_inquiries ( options = { } ) container_id = options [ :container_id ] content_tag ( :div , id : container_id ) do content_tag ( :div , '' , data : { update_path : plugin ( 'inquiry' ) . inquiries_path ( { container_id : container_id , per_page : ( options [ :per_page ] || Inquiry :: Inquiry . default_per_page ) , filter : ( options [ :filter ] || { } ) , partial : true } ) , update_immediately : true } ) end end
This method creates a div with data needed attributes.
This method creates a div with data needed attributes .
options
<not_specific>