gluttonberg/app/models/page.rb
# Just palms off the request for the contents to the current localization
Just palms off the request for the contents to the current localization
Just palms off the request for the contents to the current localization
def localized_contents
      @contents ||= begin
        Content.content_associations.inject([]) do |memo, assoc|
          memo += send(assoc).all_with_localization(:page_localization_id => current_localization.id)
        end
      end
    end
def localized_contents @contents ||= begin Content . content_associations . inject ( [ ] ) do | memo , assoc | memo += send ( assoc ) . all_with_localization ( :page_localization_id => current_localization . id ) end end end
Just palms off the request for the contents to the current localization
Just palms off the request for the contents to the current localization