Sha256: 9179828b70408c21881f541c001a9cc7f43788501c75ca242907867e619dd777

Contents?: true

Size: 400 Bytes

Versions: 104

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

104 entries across 104 versions & 1 rubygems

Version Path
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
cm-admin-3.0.7 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.6 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.5 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.4 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.3 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.2 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.1 lib/cm_admin/models/custom_action.rb
cm-admin-3.0.0 lib/cm_admin/models/custom_action.rb
cm-admin-2.4.6 lib/cm_admin/models/custom_action.rb
cm-admin-2.4.5 lib/cm_admin/models/custom_action.rb
cm-admin-2.4.4 lib/cm_admin/models/custom_action.rb
cm-admin-2.4.3 lib/cm_admin/models/custom_action.rb