Sha256: f5b256f648bb50b08689f284f6b0da592a4f5b0ff5da2116b22d5cd80b6b42e1
Contents?: true
Size: 464 Bytes
Versions: 16
Compression:
Stored size: 464 Bytes
Contents
module Bhf module ViewHelpers module ActionView def bhf_edit(object, options = {}) return unless session[Bhf::Engine.config.session_auth_name.to_s] == true options[:platform_name] ||= object.class.to_s.pluralize.downcase return unless object.bhf_can_edit?(options) render :partial => 'bhf/helper/frontend_edit', :locals => { :platform_name => options[:platform_name], :object => object } end end end end
Version data entries
16 entries across 16 versions & 1 rubygems