class ActionMailer::Preview

def find(preview)

Find a mailer preview by its underscored class name
def find(preview)
  all.find{ |p| p.preview_name == preview }
end