Skip to content

Extend Style/SymbolProc's AllowedMethods #779

Closed
@thisismydesign

Description

Is your feature request related to a problem? Please describe.

Style/SymbolProc's AllowedMethods defaults to [respond_to, define_method] so that you can do

class MyController < ApplicationController
  def create
    respond_to do |format|
      format.json
    end
  end

This could be extended to ActionMailer's.mail method which works similarly:

mail(args) do |format|
  format.mjml
end

Describe the solution you'd like

AllowedMethods defaults to [respond_to, define_method, mail]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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