Class: ProjectBadge
- Inherits:
-
Badge
- Object
- ActiveRecord::Base
- ApplicationRecord
- Badge
- ProjectBadge
- Includes:
- EachBatch
- Defined in:
- app/models/badges/project_badge.rb
Constant Summary
Constants inherited from Badge
Badge::PLACEHOLDERS, Badge::PLACEHOLDERS_REGEX
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Instance Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Instance Method Details
#rendered_image_url(project = nil) ⇒ Object
15 16 17 18 |
# File 'app/models/badges/project_badge.rb', line 15 def rendered_image_url(project = nil) project ||= self.project super end |
#rendered_link_url(project = nil) ⇒ Object
10 11 12 13 |
# File 'app/models/badges/project_badge.rb', line 10 def rendered_link_url(project = nil) project ||= self.project super end |