Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.665 kb
module TableCloth
module Extensions
module Actions
autoload :Action, "table_cloth/extensions/actions/action"
autoload :Column, "table_cloth/extensions/actions/column"
autoload :ActionCollection, "table_cloth/extensions/actions/action_collection"
extend ActiveSupport::Concern
module ClassMethods
def actions(options={}, &block)
action_collection.instance_eval(&block)
column :actions, options.update(collection: action_collection, using: Column)
end
private
def action_collection
@action_collection ||= ActionCollection.new
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.