Sha256: 3c355bf2a09fa7ed644c95cc6461c64bb16fb7413903031155ef2f19ad0e3d76
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require "rails" require "rubygems" require "devise" require "devise_invitable" require "devise-encryptable" require 'omniauth' require 'omniauth-facebook' require 'omniauth-openid' require 'uuidtools' require 'will_paginate' require 'cancan' # Make Devise "see" the changes made in the citygate appilication controller Devise.parent_controller = "Citygate::ApplicationController" module Citygate def self.root File.expand_path '../../..', __FILE__ end class Engine < ::Rails::Engine isolate_namespace Citygate config.i18n.load_path += Dir[Citygate::Engine.root.join('config', 'locales', '**', '*.{rb,yml}')] # Accepts the same options as will_paginate and uses # them in the backend mattr_accessor :will_paginate_options @@will_paginate_options = { per_page: 10 } # If the mount path of citygate in the app changes, # this must change mattr_accessor :mount_path @@mount_path = "" # The maximum number of allowed users. 0 is unlimited. mattr_accessor :no_of_users @@no_of_users = 0 #The roles in the system (guest is implicit) mattr_accessor :roles @@roles = [ { name: "member" }, { name: "admin" } ] def configure yield self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citygate-0.1.1 | lib/citygate/engine.rb |
citygate-0.1.0 | lib/citygate/engine.rb |