Skip to content

Commit

Permalink
fix: create and update when using view.form? (#2509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Feb 26, 2024
1 parent c8b8c78 commit b924e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/view_inquirer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Avo
class ViewInquirer < ActiveSupport::StringInquirer
DISPLAY_VIEWS = %w[index show].freeze unless defined? DISPLAY_VIEWS
FORM_VIEWS = %w[new edit].freeze unless defined? FORM_VIEWS
FORM_VIEWS = %w[new edit create update].freeze unless defined? FORM_VIEWS

def initialize(view)
super(view.to_s)
Expand Down

0 comments on commit b924e78

Please sign in to comment.