root/Explorator/trunk/config/environment.rb @ 487

Revision 487, 3.5 KB (checked in by mauriciobomfim, 7 years ago)

Added jruby support

Line 
1# Be sure to restart your server when you modify this file
2
3# Specifies gem version of Rails to use when vendor/rails is not present
4RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
5
6# Bootstrap the Rails environment, frameworks, and default configuration
7require File.join(File.dirname(__FILE__), 'boot')
8
9Rails::Initializer.run do |config|
10  # Settings in config/environments/* take precedence over those specified here.
11  # Application configuration should go into files in config/initializers
12  # -- all .rb files in that directory are automatically loaded.
13#
14# config.action_controller.session = {
15#    :session_key => '_SemanticNavigation_session',
16#    :secret      => '9d4c0d38e0089727c092801103c9880ccfb20c07d64e86f30b4fd51a23af387648a7887c6b20234f41348fd7a074ceabfb9c70867ac4611ae8af4dade33de76d'
17#  }
18
19  # Add additional load paths for your own custom dirs
20  # config.load_paths += %W( #{RAILS_ROOT}/extras )
21
22  # Specify gems that this application depends on and have them installed with rake gems:install
23  # config.gem "bj"
24  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
25  # config.gem "sqlite3-ruby", :lib => "sqlite3"
26  # config.gem "aws-s3", :lib => "aws/s3"
27    config.gem "uuidtools", :version => '1.0.7'
28  # Only load the plugins named here, in the order given (default is alphabetical).
29  # :all can be used as a placeholder for all plugins not explicitly named
30  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
31
32  # Skip frameworks you're not going to use. To use Rails without a database,
33  # you must remove the Active Record framework.
34   config.frameworks -= [ :active_record]
35
36  # Activate observers that should always be running
37  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
38
39  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
40  # Run "rake -D time" for a list of tasks for finding time zone names.
41  config.time_zone = 'UTC'
42 
43
44  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
45  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
46  # config.i18n.default_locale = :de
47end
48require 'libs.rb'
49
50require "will_paginate" 
51WillPaginate::ViewHelpers.pagination_options[:previous_label] ='<'
52WillPaginate::ViewHelpers.pagination_options[:next_label] = '>' 
53WillPaginate::ViewHelpers.pagination_options[:inner_window] = 2
54
55$WILL_PAGINATE_PER_PAGE=30  #number of resourcer per page
56#Setting this $QUERY_RETRIEVE_LABEL_AND_TYPE to true will force Explorator's queries to retrieve resources's label and type , of course, if they exist.
57#This increase the Explorator's response time because only 1 query will be executed at all.
58#If $QUERY_RETRIEVE_LABEL_AND_TYPE=false then Explorator will execute one query for each resource rendered on the interface.
59#We MUST set $LABEL_PROPERTIES as ['rdfs::label'], otherwise the heuristic above will not behave as described.
60$QUERY_RETRIEVE_LABEL_AND_TYPE=false
61
62#RENDER HEURISTIC CONFIGURATION
63# if $USE_EXPLORATOR_VIEW=true explorator's render will try to get the Resource'label from an expression defined in a property explorator:view
64$USE_EXPLORATOR_VIEW=false 
65#The $LABEL_PROPERTIES is used to defined which properties Explorator should look for human readable label. The first one found will be used on the interface.
66#If you are using $QUERY_RETRIEVE_LABEL_AND_TYPE=true the you must set $LABEL_PROPERTIES=['rdfs::label']
67$LABEL_PROPERTIES=['rdfs::label','name','title'] 
68#$LABEL_PROPERTIES=['rdfs::label']
69 
Note: See TracBrowser for help on using the browser.