Search
⌘K
    to navigateEnterto select Escto close

    Variable names should match with domain

    1project_notification_subscriber = @project.email_subscribers.first

    In the above case the variable project_notification_subscriber is holding the record of type email_subscriber. However that is not clear from the variable name.

    Instead variable name should have been as shown below.

    1email_subscriber = @project.email_subscribers.first
    Previous
    Next