Sha256: f2f0001f7604b3250c006520a8a7d021df0a79dd86fe7695a84f40a49de07fbc

Contents?: true

Size: 955 Bytes

Versions: 3

Compression:

Stored size: 955 Bytes

Contents

module Databaseformalizer
  require 'acts_as_entity/base'
  #the engine and controller need to be load with path in order to not load the parent plugin engine
  require File.expand_path('../engine', __FILE__)
  require File.expand_path('../application_controller', __FILE__)

  module Databaseformalizer

  end
  

  #we define the routes there
  def extraRoutes(map)
    mount_at =  '/databaseformalizer'
    map.with_options(:path_prefix => mount_at, :name_prefix => "databaseformalizer_") do |t|
      t.resources :entities,    :controller => "databaseformalizer/entities"
      t.resources :entity_defs, :controller => "databaseformalizer/entity_defs"
      t.resources :attr_defs,   :controller => "databaseformalizer/attr_defs"
    end 
       
    map.databaseformalizer 'databaseformalizer', 
        :action => 'index', 
        :controller => 'databaseformalizer/dbformahome'

  end
  module_function :extraRoutes
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
databaseformalizer-1.0.1 lib/databaseformalizer.rb
databaseformalizer-1.0 lib/databaseformalizer.rb
databaseformalizer-0.3.0 lib/databaseformalizer.rb