lib/apipie/dsl_definition.rb
# Reuses param group for this method. The definition is looked up
# in scope of this controller. If the group was defined in
# different controller, the second param can be used to specify it.
# when using action_aware parmas, you can specify :as =>
# :create or :update to explicitly say how it should behave
Reuses param group for this method. The definition is looked up
in scope of this controller. If the group was defined in
different controller, the second param can be used to specify it.
when using action_aware parmas, you can specify :as =>
:create or :update to explicitly say how it should behave
Reuses param group for this method . The definition is looked up in scope of this controller . If the group was defined in different controller the second param can be used to specify it . when using action_aware parmas you can specify : as = > : create or : update to explicitly say how it should behave
def param_group(name, scope_or_options = nil, options = {})
        if scope_or_options.is_a? Hash
          options.merge!(scope_or_options)
          scope = options[:scope]
        else
          scope = scope_or_options
        end
        scope ||= _default_param_group_scope
        @_current_param_group = {
          :scope => scope,
          :name => name,
          :options => options,
          :from_concern => scope.apipie_concern?
        }
        self.instance_exec(&Apipie.get_param_group(scope, name))
      ensure
        @_current_param_group = nil
      end
def param_group ( name , scope_or_options = nil , options = { } ) if scope_or_options . is_a? Hash options . merge! ( scope_or_options ) scope = options [ :scope ] else scope = scope_or_options end scope ||= _default_param_group_scope @_current_param_group = { :scope => scope , :name => name , :options => options , :from_concern => scope . apipie_concern? } self . instance_exec ( & Apipie . get_param_group ( scope , name ) ) ensure @_current_param_group = nil end
Reuses param group for this method.
Reuses param group for this method .
name
<not_specific>
scope_or_options
<not_specific>
options
<not_specific>