Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created March 5, 2013 18:25
Show Gist options
  • Select an option

  • Save jfirebaugh/5092806 to your computer and use it in GitHub Desktop.

Select an option

Save jfirebaugh/5092806 to your computer and use it in GitHub Desktop.
class Post
def to_liquid_with_name
to_liquid_without_name.merge("name" => self.name)
end
alias_method :to_liquid_without_name, :to_liquid
alias_method :to_liquid, :to_liquid_with_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment