Sha256: 33cd39b7af39ba1dd70418dc3be23e298b434ca5506b8a31b068c20d0bad4587

Contents?: true

Size: 1.45 KB

Versions: 28

Compression:

Stored size: 1.45 KB

Contents

# EffectiveQbSync Rails Engine

EffectiveQbSync.setup do |config|
  # Configure Database Tables
  config.qb_requests_table_name = :qb_requests
  config.qb_tickets_table_name = :qb_tickets
  config.qb_logs_table_name = :qb_logs
  config.qb_order_items_table_name = :qb_order_items

  # Authorization Method
  #
  # This method is called by all controller actions with the appropriate action and resource
  # If the method returns false, an Effective::AccessDenied Error will be raised (see README.md for complete info)
  #
  # Use via Proc (and with CanCan):
  # config.authorization_method = Proc.new { |controller, action, resource| authorize!(action, resource) }
  #
  # Use via custom method:
  # config.authorization_method = :my_authorization_method
  #
  # And then in your application_controller.rb:
  #
  # def my_authorization_method(action, resource)
  #   current_user.is?(:admin)
  # end
  #
  # Or disable the check completely:
  # config.authorization_method = false
  config.authorization_method = Proc.new { |controller, action, resource| true }

  # Quickbooks Company File Settings

  # The username / password of the Quickbooks user that should be allowed to synchronize.
  # This must match the user configured in the Quickbooks .qwc file
  config.quickbooks_username = 'username'
  config.quickbooks_password = 'password'

  # The Item Name/Number used for tax.  Must match the configured Quickbooks .qwc file
  config.quickbooks_tax_name = 'GST Collected'

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
effective_qb_sync-1.5.0 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.4.0 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.8 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.7 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.6 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.5 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.4 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.3 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.2 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.1 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.3.0 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.5 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.4 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.3 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.2 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.1 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.2.0 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.1.5 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.1.4 spec/dummy/config/initializers/effective_qb_sync.rb
effective_qb_sync-1.1.3 spec/dummy/config/initializers/effective_qb_sync.rb