Sha256: abc90b5330b489f83beae5c0ff954a526554816deed309c8cccb5ad03f7fd286

Contents?: true

Size: 1.25 KB

Versions: 46

Compression:

Stored size: 1.25 KB

Contents

# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
require 'gooddata/extensions/class'
require 'gooddata/extensions/true'
require 'gooddata/extensions/false'
require 'gooddata/extensions/integer'
require 'gooddata/extensions/string'
require 'gooddata/extensions/nil'

require 'active_support/core_ext/hash/compact'

require_relative '../dsl/dsl'
require_relative '../helpers/helpers'
require_relative '../types/types'

module GoodData
  module LCM2
    class BaseAction
      class << self
        include Dsl::Dsl

        def check_params(specification, params)
          Helpers.check_params(specification, params)
        end

        # This method is used to enable the possibility to read keys of params object
        # which are not specified in the specification constant
        # typically in case when method access params dynamically based on user input
        def without_check(specification, params)
          params.clear_filters # disables params validation
          result = yield
          params.setup_filters(specification) # enables params validation
          result
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gooddata-2.1.14-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.14 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.13-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.13 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.12-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.12 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.11-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.11 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.10-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.10 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.9-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.9 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.8-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.8 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.7-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.7 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.6-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.6 lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.5-java lib/gooddata/lcm/actions/base_action.rb
gooddata-2.1.5 lib/gooddata/lcm/actions/base_action.rb