Skip to content

Commit

Permalink
Standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Aug 14, 2024
1 parent c4345a6 commit 237d02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/madmin/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def inherited(base)
super
end

def model(value=nil)
def model(value = nil)
if value
@model = value
else
Expand Down Expand Up @@ -108,7 +108,7 @@ def edit_path(record)
end

def becomes(record)
record.class == model ? record : record.becomes(model)
record.instance_of?(model) ? record : record.becomes(model)
end

def param_key
Expand Down

0 comments on commit 237d02e

Please sign in to comment.