Class: ConstraintsTestObject
- Includes:
- ActiveScaffold::Constraints
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/test/misc/constraints_test.rb
Instance Attribute Summary collapse
-
#active_scaffold_config ⇒ Object
Returns the value of attribute active_scaffold_config.
-
#active_scaffold_constraints ⇒ Object
make the constraints read-write, instead of coming from the session.
-
#active_scaffold_joins ⇒ Object
Returns the value of attribute active_scaffold_joins.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
-
.before_filter(*args) ⇒ Object
stub out what the mixin expects to find …
Instance Method Summary collapse
-
#initialize ⇒ ConstraintsTestObject
constructor
A new instance of ConstraintsTestObject.
- #merge_conditions(old, new) ⇒ Object
Methods included from ActiveScaffold::Constraints
Constructor Details
#initialize ⇒ ConstraintsTestObject
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_config ⇒ Object
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_constraints ⇒ Object
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_joins ⇒ Object
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 |
#params ⇒ Object
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 |