diff --git a/app/views/admin/patchfiles/index.html.erb b/app/views/admin/patchfiles/index.html.erb index ba06d45..27e46d6 100644 --- a/app/views/admin/patchfiles/index.html.erb +++ b/app/views/admin/patchfiles/index.html.erb @@ -1,3 +1,58 @@ + + +
<% @i = 0 %> diff --git a/lib/patchfile/engine.rb b/lib/patchfile/engine.rb index 4945263..bf8266f 100644 --- a/lib/patchfile/engine.rb +++ b/lib/patchfile/engine.rb @@ -1,13 +1,13 @@ require "yaml" module Patchfile class Engine < ::Rails::Engine - # initializer "patchfile" do - # OrbitApp.registration "Patchfile", :type => "ModuleApp" do - # base_url File.expand_path File.dirname(__FILE__) + initializer "patchfile" do + OrbitApp.registration "Patchfile", :type => "ModuleApp" do + base_url File.expand_path File.dirname(__FILE__) # taggable "patchfilefield" # categorizable # authorizable - # side_bar do + side_bar do # head_label_i18n 'patchfile.patchfile', icon_class: "icons-megaphone" # available_for "users" # active_for_controllers (['admin/patchfiles']) @@ -25,13 +25,13 @@ module Patchfile # :active_for_action=>{'admin/patchfiles'=>'showckeditor'}, # :available_for => 'users' - # end - # end + end + end # # temp = YAML.load_file(File.join(Rails.root,"config","mongoid.yml")) # # dbsettings = temp["production"]["sessions"]["default"] # # s = Moped::Session.new(dbsettings["hosts"]) # # s.use dbsettings["database"] # # s[:bulletins].indexes.create({expirable_created_at: 1},{ expireAfterSeconds: 180 }) - # end + end end end \ No newline at end of file