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

Version Path
rbbt-rest-1.2.33 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.32 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.31 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.30 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.29 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.28 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.27 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.26 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.25 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.24 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.23 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.22 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.21 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.20 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.19 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.18 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.17 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.16 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.15 lib/rbbt/rest/entity/action_card.rb
rbbt-rest-1.2.14 lib/rbbt/rest/entity/action_card.rb