I am the new Ruby / Rails guy. Here one question puzzles me:
Can we find the exact lists of mixin-ed modules for a class in Rails from an API document? For example, if we have an instance of one subclass of ActiveRecord :: Base, we can use the verification method in this class, for example:
class Product < ActiveRecord::Base has_many :line_items validates :title, :description, :image_url, :presence => true end
from the rails api doc we can find that validates belongs to ActiveModel :: Validations :: ClassMethods, so ActiveRecore :: Base should have ActiveModel :: Validations :: ClassMethods mixin, but I did not find anything that related to this in the api link. Can someone tell me if I can find this information from api doc?
Thanks for your help in advance. I really hope my question doesn't sound too stupid :)
ruby ruby-on-rails
defmacro
source share