class Admin::ImageBuilder
Public Instance Methods
message()
click to toggle source
# File lib/ecrire/app/forms/admin/image_builder.rb, line 4 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 Instance Methods
method_missing(method, *args, &block)
click to toggle source
# File lib/ecrire/app/forms/admin/image_builder.rb, line 20 def method_missing(method, *args, &block) @template.send(method, *args, &block) end
t(*args)
click to toggle source
# File lib/ecrire/app/forms/admin/image_builder.rb, line 14 def t(*args) args.push({}) unless args.last.is_a?(Hash) args.last[:scope] = %w(admin form image) I18n.t *args end