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
21 22 23 24 25 26 27 28 |
# File 'app/models/pulldown/requests/bait_library_request.rb', line 21 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 |