Sha256: e6a025f9eb669763a6ef9531918fe86b66eb1754c2e896a3fa7f07ad9ff93e59
Contents?: true
Size: 704 Bytes
Versions: 26
Compression:
Stored size: 704 Bytes
Contents
module Admin class ImageBuilder < ActionView::Helpers::FormBuilder def message if object.header? content_tag :p, "You can replace your header by either <strong>clicking</strong> or <strong>dropping</strong> a picture here.".html_safe else content_tag :p, "Upload a picture for your post' header by either <strong>clicking</strong> or <strong>dropping</strong> a picture here".html_safe end end protected def t(*args) args.push({}) unless args.last.is_a?(Hash) args.last[:scope] = %w(admin form image) I18n.t *args end def method_missing(method, *args, &block) @template.send(method, *args, &block) end end end
Version data entries
26 entries across 26 versions & 1 rubygems