Skip to content

Commit

Permalink
Condense
Browse files Browse the repository at this point in the history
  • Loading branch information
northeastprince authored Feb 15, 2025
1 parent 7e68e9c commit 72062a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/initializers/read_only_mode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ def read_only_mode?

module ReadOnly
def readonly?(mode: true)
if mode
super || read_only_mode?
else
super
end
super || (read_only_mode? if mode)
end

def _raise_readonly_record_error
Expand Down

0 comments on commit 72062a5

Please sign in to comment.