class Models::User inherit Mongo::Model attr_accessor :name inherit Models::Authorized class << self def avatar_url *a; end inject current: :user end end