Sha256: 2b1c22d2240a0f619c847913d6d5408c5a8fc6eff5c2d58c0601d7d5f9e194e1
Contents?: true
Size: 320 Bytes
Versions: 5
Compression:
Stored size: 320 Bytes
Contents
module Admin::BlogHelper def lock_disabled @post.lock_disabled_html end def post_lock_disabled if @post.locked? || @post.posted? 'disabled="disabled"'.html_safe end end def format_posted_at(fmt) if @post && @post.posted_at @post.posted_at.localtime.strftime fmt end end end
Version data entries
5 entries across 5 versions & 1 rubygems