1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Cleanup credits related code as it is removed now in PR #32429

This commit is contained in:
Prathamesh Sonpatki 2018-04-03 15:19:57 +05:30
parent c9b606dfe7
commit ecb6ee5948
No known key found for this signature in database
GPG key ID: 8B90F6B89E2BCB71
2 changed files with 1 additions and 10 deletions

View file

@ -38,15 +38,6 @@ module RailsGuides
end end
end end
def author(name, nick, image = "credits_pic_blank.gif", &block)
image = "images/#{image}"
result = tag(:img, src: image, class: "left pic", alt: name, width: 91, height: 91)
result << content_tag(:h3, name)
result << content_tag(:p, capture(&block))
content_tag(:div, result, class: "clearfix", id: nick)
end
def code(&block) def code(&block)
c = capture(&block) c = capture(&block)
content_tag(:code, c) content_tag(:code, c)

View file

@ -35,7 +35,7 @@ module Kindle
def generate_front_matter(html_pages) def generate_front_matter(html_pages)
frontmatter = [] frontmatter = []
html_pages.delete_if { |x| html_pages.delete_if { |x|
if x =~ /(toc|welcome|credits|copyright).html/ if x =~ /(toc|welcome|copyright).html/
frontmatter << x unless x =~ /toc/ frontmatter << x unless x =~ /toc/
true true
end end