kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Add method to allow implicit setting from object #168

Closed brentdodell closed 6 years ago

brentdodell commented 6 years ago

This is a featured request.

What do you think of adding a check in MetaTagCollection#update to see if the passed value responds to to_meta_tags. This would allow us to define that on our models, and then just pass the model to set_meta_tags.

I believe that could be very useful. A similar concept provided for by Rails with to_partial_path and Liquid with to_liquid