Skip to content

birthday.present? && !birthday.blank? #489

@mpugach

Description

@mpugach

in Profile.rb the following construction is present

birthday.present? && !birthday.blank?

but Rails defines present? as

def present?
  !blank?
end

so why to call it twice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions