Merge pull request #26507 from Neodelf/actionview_duplicate
DRYing duplicate methods
This commit is contained in:
commit
1a128ac706
|
@ -14,9 +14,7 @@ module ActionView #:nodoc:
|
|||
"html template"
|
||||
end
|
||||
|
||||
def inspect
|
||||
"html template"
|
||||
end
|
||||
alias_method :inspect, :identifier
|
||||
|
||||
def to_str
|
||||
ERB::Util.h(@string)
|
||||
|
|
|
@ -14,9 +14,7 @@ module ActionView #:nodoc:
|
|||
"text template"
|
||||
end
|
||||
|
||||
def inspect
|
||||
"text template"
|
||||
end
|
||||
alias_method :inspect, :identifier
|
||||
|
||||
def to_str
|
||||
@string
|
||||
|
|
Loading…
Reference in New Issue