Sha256: 9067a5c08898091a2e25270601958831bdceb59fc989ddc02975bafd7351a299
Contents?: true
Size: 446 Bytes
Versions: 39
Compression:
Stored size: 446 Bytes
Contents
class ActionCard attr_accessor :action_parameters, :requires def initialize(&block) @action_parameters = block @requires = [] end def require(*inputs, &block) if block_given? @requires << [inputs, block] else @requires.concat inputs end end end module EntityRESTHelpers def action_card_render(card, &block) partial_render('entity_partials/action_card', :card => card, :block => block) end end
Version data entries
39 entries across 39 versions & 1 rubygems