Class: ConstraintsTestObject

Inherits:
Object
  • Object
show all
Includes:
ActiveScaffold::Constraints
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ActiveScaffold::Constraints

included

Constructor Details

#initializeConstraintsTestObject

Returns a new instance of ConstraintsTestObject.



90
91
92
93
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 90

def initialize
  @active_scaffold_joins = []
  @params = {}
end

Instance Attribute Details

#active_scaffold_configObject

Returns the value of attribute active_scaffold_config.



78
79
80
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 78

def active_scaffold_config
  @active_scaffold_config
end

#active_scaffold_constraintsObject

make the constraints read-write, instead of coming from the session



88
89
90
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 88

def active_scaffold_constraints
  @active_scaffold_constraints
end

#active_scaffold_joinsObject

Returns the value of attribute active_scaffold_joins.



77
78
79
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 77

def active_scaffold_joins
  @active_scaffold_joins
end

#paramsObject

Returns the value of attribute params.



79
80
81
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 79

def params
  @params
end

Class Method Details

.before_filter(*args) ⇒ Object

stub out what the mixin expects to find …



76
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 76

def self.before_filter(*args); end

Instance Method Details

#merge_conditions(old, new) ⇒ Object



80
81
82
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb', line 80

def merge_conditions(old, new)
  [old, new].compact.flatten
end