Class: Concept::Relation::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Concept::Relation::Base
- Defined in:
- app/models/concept/relation/base.rb
Overview
Copyright 2011 innoQ Deutschland GmbH
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Direct Known Subclasses
Class Method Summary collapse
- .edit_partial_name(obj) ⇒ Object
- .partial_name(obj) ⇒ Object
-
.reverse_relation_class ⇒ Object
********* Methods.
-
.singular? ⇒ Boolean
if ‘singular` is true, only a single occurrence is allowed per instance.
- .view_section(obj) ⇒ Object
- .view_section_sort_key(obj) ⇒ Object
Class Method Details
.edit_partial_name(obj) ⇒ Object
86 87 88 |
# File 'app/models/concept/relation/base.rb', line 86 def self.edit_partial_name(obj) "partials/concept/relation/edit_base" end |
.partial_name(obj) ⇒ Object
82 83 84 |
# File 'app/models/concept/relation/base.rb', line 82 def self.partial_name(obj) "partials/concept/relation/base" end |
.reverse_relation_class ⇒ Object
********* Methods
70 71 72 |
# File 'app/models/concept/relation/base.rb', line 70 def self.reverse_relation_class self end |
.singular? ⇒ Boolean
if ‘singular` is true, only a single occurrence is allowed per instance
91 92 93 |
# File 'app/models/concept/relation/base.rb', line 91 def self.singular? false end |
.view_section(obj) ⇒ Object
74 75 76 |
# File 'app/models/concept/relation/base.rb', line 74 def self.view_section(obj) "relations" end |
.view_section_sort_key(obj) ⇒ Object
78 79 80 |
# File 'app/models/concept/relation/base.rb', line 78 def self.view_section_sort_key(obj) 100 end |