codevise / pageflow-before-after

Page type for displaying before/after images.
0 stars 6 forks source link

Use the current method of registering page type #13

Closed tilsammans closed 8 years ago

tf commented 8 years ago

Makes sense. This gem only depends on pageflow 0.7 while the new api was introduced in 0.9. So technically the installation instructions would be broken for old versions. But I guess we can ignore that.

But let's also change it to use the Pageflow::BeforeAfter.page_type factory method. That pattern proved helpful to decouple from the concrete class constant.

tilsammans commented 8 years ago

@tf done!

tf commented 8 years ago

:+1: