2021-04-15から1日間の記事一覧
ActiveRecord::Base.connection_config 以上。 参考URL https://apidock.com/rails/ActiveRecord/ConnectionHandling/connection_config
class UserDecorator def initialize(user) @user = user end def full_name "#{first_name} #{last_name}" end private delegate :first_name, :last_name, to: :@user end privateメソッドはレシーバーがある状態では呼べないのに呼べている。privateにな…