Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Feb 18, 2025
1 parent 56f9ebc commit 2eeeb8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/sir_trevor_rails/block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def format
send(:[], :format).present? ? send(:[], :format).to_sym : DEFAULT_FORMAT
end

def supports_alt_text?
self.class.supports_alt_text?
end
delegate :supports_alt_text?, to: self.class

# By default we don't support alt text, but some subclasses do
def self.supports_alt_text?
Expand Down

0 comments on commit 2eeeb8b

Please sign in to comment.