Hi
I got an Application class which is derived from our custom Base
Class:
class Application < MyBaseController
end
However, while booting, the app dies with following error:
superclass mismatch for class Application
This is because, merb_datamapper is monkey patching Application :
# wrap action in repository block to enable identity map
class Application < Merb::Controller
override! :_call_action
def _call_action(*)
repository do |r|
Merb.logger.debug "In repository block #{r.name}"
super
end
end
end
I'm not sure how to make my Application class work in this case...If I
rename my Application to something else, I'd lose whatever
merb_datamapper is trying to inject. So, whats the recommended way to
have your own BaseController?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---