Sha256: e39f0089f41ebdc42268a61d59bb548d939006e128c07b00ae29bca46e7c704f

Contents?: true

Size: 274 Bytes

Versions: 60

Compression:

Stored size: 274 Bytes

Contents

require_relative 'actions/blocks'

module CmAdmin
  module Models
    class CustomAction < Action
      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

60 entries across 60 versions & 1 rubygems

Version Path
cm-admin-1.1.9 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.8 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.7 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.6 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.5 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.4 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.3 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.2 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.1 lib/cm_admin/models/custom_action.rb
cm-admin-1.1.0 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.9 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.8 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.7 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.6 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.5 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.3 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.2 lib/cm_admin/models/custom_action.rb
cm-admin-1.0.0 lib/cm_admin/models/custom_action.rb
cm-admin-0.9.1 lib/cm_admin/models/custom_action.rb
cm-admin-0.9.0 lib/cm_admin/models/custom_action.rb