[Blacklight-development] Overriding SolrDocument
goodieboy at gmail.com
Wed Apr 1 16:33:40 EDT 2009
Yeah, I'm with you. I don't like it either. Just stating what you *could*
On Wed, Apr 1, 2009 at 3:47 PM, Jamie Orchard-Hays <jamie at dang.com> wrote:
> Ew. I don't think that passes the KISS test.
> On Apr 1, 2009, at 12:03 PM, Matt Mitchell wrote:
> Jamie, your question about just overriding a file in app/models... If you
>> wanted to do it that way, you would create a new file at
>> app/models/solr_document.rb. You would then have to call
>> "require_dependency" to load the SolrDocument from the BL plugin. This would
>> get you the original SolrDocument class definition. You'd then open up the
>> class, and "include" another module that has the custom behavior. You can
>> then call super on methods your module overrides.
> Blacklight-development mailing list
> Blacklight-development at rubyforge.org
> Blacklightopac Blog http://blacklightopac.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Blacklight-development