Module: Pulldown::Requests::BaitLibraryRequest::BaitMetadata

Defined in:
app/models/pulldown/requests/bait_library_request.rb

Overview

Extends the associated metadata class for bait library support Do not include directly, include Pulldown::Requests::BaitLibraryRequest in the parent request class

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


25
26
27
28
29
30
31
32
# File 'app/models/pulldown/requests/bait_library_request.rb', line 25

def self.included(base)
  base.class_eval do
    include BaitLibrary::Associations
    association(:bait_library, :name, scope: :visible)
    validates :bait_library, presence: true
    validate :bait_library_valid
  end
end