Sha256: 9179828b70408c21881f541c001a9cc7f43788501c75ca242907867e619dd777

Contents?: true

Size: 400 Bytes

Versions: 116

Compression:

Stored size: 400 Bytes

Contents

require_relative 'actions/blocks'

module CmAdmin
  module Models
    class CustomAction < Action
      attr_accessor :modal_configuration, :url_params

      def initialize(attributes = {}, &block)
        super
      end

      class << self
        def find_by(model, search_hash)
          model.available_actions.find { |i| i.name == search_hash[:name] }
        end
      end
    end
  end
end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
cm-admin-4.4.8 lib/cm_admin/models/custom_action.rb
cm-admin-4.4.6 lib/cm_admin/models/custom_action.rb
cm-admin-4.4.1 lib/cm_admin/models/custom_action.rb
cm-admin-4.4.0 lib/cm_admin/models/custom_action.rb
cm-admin-4.3.0 lib/cm_admin/models/custom_action.rb
cm-admin-4.2.1 lib/cm_admin/models/custom_action.rb
cm-admin-4.2.0 lib/cm_admin/models/custom_action.rb
cm-admin-4.1.2 lib/cm_admin/models/custom_action.rb
cm-admin-4.1.1 lib/cm_admin/models/custom_action.rb
cm-admin-4.1.0 lib/cm_admin/models/custom_action.rb
cm-admin-4.0.0 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.16 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.15 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.14 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.13 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.12 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.11 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.10 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.9 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.8 lib/cm_admin/models/custom_action.rb