Sha256: ed50f54a3c9eb626dfd21db0869b8ba4c57f03302243cbd06a282cfb22e643a1
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true require 'ostruct' module Sunrise module Views class SearchWrapper < ::OpenStruct extend ActiveModel::Naming def self.model_name @_model_name ||= begin namespace = parents.detect { |n| n.respond_to?(:_railtie) } ActiveModel::Name.new(self, namespace, 'search') end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | lib/sunrise/views/search_wrapper.rb |
sunrise-cms-1.1.0 | lib/sunrise/views/search_wrapper.rb |