Sha256: b5492559e78f2fd775a16373c6d5ef07b91389c2a1783fea5f4829024ad6fbe3
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
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" autoload :Jury, "table_cloth/extensions/actions/jury" 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
Version data entries
4 entries across 4 versions & 1 rubygems