Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. [8] pry(#<#<Class:0x007fb47c761c08>>)> $ customization.title
  2.  
  3. From: /bundle/2.2/gems/apress-companies-pages-8.1.0/app/adapters/apress/companies/menus/company_page_section_customization_adapter.rb @ line 5:
  4. Owner: Apress::Companies::Menus::CompanyPageSectionCustomizationAdapter
  5. Visibility: public
  6. Number of lines: 17
  7.  
  8. module Menus
  9. class CompanyPageSectionCustomizationAdapter < BaseSectionCustomizationAdapter
  10. delegate :company_page, :title, :header, :slug, :id, to: :customization
  11.  
  12. def url_proc
  13. proc { |customization| company_page_path(customization.company_page.company, customization.company_page) }
  14. end
  15.  
  16. def url_title
  17. company_page.title
  18. end
  19.  
  20. def sort_priority
  21. -2
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement