rails callback code example
Example 1: rails callback STI
module Users
class Standard < User
before_save :some_callback
end
end
Example 2: rails callback STI
class User < AC::Base
belongs_to :account
end
module Users
class Standard < User
before_save :some_callback
end
end
class User < AC::Base
belongs_to :account
end