Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [8] pry(#<#<Class:0x007fb47c761c08>>)> $ customization.title
- From: /bundle/2.2/gems/apress-companies-pages-8.1.0/app/adapters/apress/companies/menus/company_page_section_customization_adapter.rb @ line 5:
- Owner: Apress::Companies::Menus::CompanyPageSectionCustomizationAdapter
- Visibility: public
- Number of lines: 17
- module Menus
- class CompanyPageSectionCustomizationAdapter < BaseSectionCustomizationAdapter
- delegate :company_page, :title, :header, :slug, :id, to: :customization
- def url_proc
- proc { |customization| company_page_path(customization.company_page.company, customization.company_page) }
- end
- def url_title
- company_page.title
- end
- def sort_priority
- -2
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement