Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Refinery::Page#url and friends. #2031

Merged
merged 1 commit into from
Nov 24, 2012
Merged

Refactor Refinery::Page#url and friends. #2031

merged 1 commit into from
Nov 24, 2012

Conversation

ugisozols
Copy link
Member

@parndt
Copy link
Member

parndt commented Nov 19, 2012

@solnic thanks for the inspiration!

@solnic
Copy link

solnic commented Nov 19, 2012

@parndt sweet :)

url_hash.update :locale => locale if locale
url_hash
def url_marketable
Refinery.deprecate "Refinery::Page#url_marketable", :when => '2.2'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you say what replaces it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parndt done.

@ugisozols
Copy link
Member Author

I'll squash when this PR will be accepted for merge ;)


class Localised < Url
def self.handle?(page)
page.link_url.present?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@awagener what do you think about this knowing implementation details of Page?

* Add replacement message to deprecated Refinery::Page#url_marketable method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants