kpumuk / meta-tags

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

Can configure description truncation length #76

Closed paulanthonywilson closed 9 years ago

paulanthonywilson commented 9 years ago

The length at which meta description was truncated was hard-coded to 200 chars. This can now be configured using MetaTags#truncate_description_at_length= . It still defaults to 200 chars for backward compatibility.

Note that currently a large number of specs fail in Rails/Actionpack 4.2. See issue https://github.com/kpumuk/meta-tags/issues/74, on the original repo, which includes a workaround.

paulanthonywilson commented 9 years ago

I'm inclined to ignore the houndci comments, as the code is consistent with the rest of the code in the files.

kpumuk commented 9 years ago

You can configure limits now, see README change in f194614e2900f2e9a906d0c12f5a5bc22791493f