lib/mobile_enhancements/railtie.rb in mobile-enhancements-0.0.3 vs lib/mobile_enhancements/railtie.rb in mobile-enhancements-0.0.4
- old
+ new
@@ -10,9 +10,11 @@
ActionDispatch::Routing::Mapper.send(:include, MobileEnhancements::RouteHelpers)
# setup the path helpers
ActionController::Base.send(:include, MobileEnhancements::HelperDelegation)
# setup the layout calculation
ActionController::Base.layout :determine_layout
+ # include the UrlHelper into action view
+ ActionView::Base.send(:include, UrlHelper)
# if we have a custom mobile format
if format = MobileEnhancements.configuration.mobile_format
# register it as an alias to the HTML mime-type
Mime::Type.register_alias "text/html", format
# setup the format calculation
\ No newline at end of file