Merge pull request #26507 from Neodelf/actionview_duplicate

DRYing duplicate methods
This commit is contained in:
Rafael França 2016-09-16 15:07:05 -03:00 committed by GitHub
commit 1a128ac706
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -14,9 +14,7 @@ module ActionView #:nodoc:
"text template"
end
def inspect
"text template"
end
alias_method :inspect, :identifier
def to_str
@string