For something like this on my code
class Master::User < Sequel::Model
...
# Concerns
include BasicAuth
include BasicAuthToken
...
end
module BasicAuth
extend ActiveSupport::Concern
...
included do
def before_save
p "do something here"
super
end
end
...
end
module BasicAuthToken
extend ActiveSupport::Concern
...
included do
def before_save
p "do something here 2"
super
end
end
...
end
What I expect is "do something here" and "do something here2" both to be
printed, but before_save hook in BasicAuthToken will override the one in
BasicAuth.
Therefore, is the only way to achieve something like this is to use
HookClassMethods ?
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.