app/models/content_service_resource.rb in daengine-0.5.9 vs app/models/content_service_resource.rb in daengine-0.5.10

- old
+ new

@@ -1,16 +1,16 @@ -require 'active_resource' -require 'daengine' -# Represents a generic piece of content for display on an OFI web property -# This model represents the 'human edited' version of website content, final displayed -# pages will be 'value added' with system-sourced data and 'mashed-in' data -# - class ContentServiceResource < ActiveResource::Base - - # self.site = Daengine.config[:content_service_url] - self.prefix = "/litcenter-service/query/" - self.element_name = "resource" - - def self.find_all - ContentServiceResource.find(:all, :params => {:contentQuery => "audienceIds='490,5270';;expired='false'"}) - end +require 'active_resource' +require 'daengine' +# Represents a generic piece of content for display on an OFI web property +# This model represents the 'human edited' version of website content, final displayed +# pages will be 'value added' with system-sourced data and 'mashed-in' data +# + class ContentServiceResource < ActiveResource::Base + + # self.site = Daengine.config[:content_service_url] + self.prefix = "/litcenter-service/query/" + self.element_name = "resource" + + def self.find_all + ContentServiceResource.find(:all, :params => {:contentQuery => "audienceIds='490,5270';;expired='false'"}) + end end \ No newline at end of file