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-0.8.9 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.8 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.7 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.6 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.5 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.4 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.3 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.2 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.1 lib/cm_admin/models/custom_action.rb
cm-admin-0.8.0 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.8 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.7 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.6 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.5 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.4 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.3 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.2 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.1 lib/cm_admin/models/custom_action.rb
cm-admin-0.7.0 lib/cm_admin/models/custom_action.rb
cm-admin-0.6.9 lib/cm_admin/models/custom_action.rb