bwillis / versioncake

:cake: Version Cake is an unobtrusive way to version APIs in your Rails or Rack apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling derived_version before the prepend_before_filter runs returns nil

bwillis opened this issue · comments

commented

If an app uses prepend_before_filter it can get in front of the Version Cake prepend_before_filter set_version. If the app's filter also checks derived_version, it is not set and returns nil.

Calling derived_version should load the version and not return nil.