office_clerk 0.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/Gemfile.lock +11 -11
- data/README.md +26 -8
- data/Rakefile +2 -2
- data/app/controllers/admin_controller.rb +2 -6
- data/app/controllers/baskets_controller.rb +2 -2
- data/app/controllers/office_controller.rb +1 -0
- data/app/controllers/orders_controller.rb +1 -1
- data/app/controllers/sessions_controller.rb +5 -5
- data/app/helpers/office_helper.rb +0 -19
- data/app/views/addresses/show.html.haml +2 -2
- data/app/views/baskets/_small.html.haml +1 -1
- data/app/views/baskets/edit.html.haml +18 -17
- data/app/views/baskets/index.html.haml +19 -17
- data/app/views/baskets/show.html.haml +3 -3
- data/app/views/categories/_treeview.html.haml +1 -1
- data/app/views/categories/edit.html.haml +5 -5
- data/app/views/categories/index.html.haml +8 -7
- data/app/views/categories/show.html.haml +5 -4
- data/app/views/clerks/edit.html.haml +4 -4
- data/app/views/clerks/index.html.haml +7 -6
- data/app/views/clerks/show.html.haml +4 -3
- data/app/views/layouts/_admin_menu.html.haml +8 -8
- data/app/views/layouts/office_clerk.haml +3 -3
- data/app/views/manage/all.haml +2 -2
- data/app/views/orders/_payment.html.haml +11 -0
- data/app/views/orders/_shipment.html.haml +10 -0
- data/app/views/orders/index.html.haml +9 -8
- data/app/views/orders/shipment.haml +3 -1
- data/app/views/orders/show.html.haml +29 -47
- data/app/views/products/_head.haml +1 -1
- data/app/views/products/_line.html.haml +1 -1
- data/app/views/products/_triple.html.haml +1 -1
- data/app/views/products/edit.html.haml +6 -4
- data/app/views/products/index.html.haml +24 -22
- data/app/views/products/show.html.haml +15 -13
- data/app/views/purchases/index.html.haml +7 -6
- data/app/views/purchases/show.html.haml +8 -7
- data/app/views/suppliers/edit.html.haml +4 -3
- data/app/views/suppliers/index.html.haml +7 -6
- data/app/views/suppliers/show.html.haml +4 -3
- data/bin/rails +11 -3
- data/config/locales/en.yml +1 -1
- data/config/locales/fi.yml +1 -1
- data/db/migrate/20131226144316_baskets.rb +2 -2
- data/db/schema.rb +2 -2
- data/lib/office_clerk/engine.rb +3 -3
- data/lib/office_clerk/version.rb +1 -1
- data/test_app/app/controllers/application_controller.rb +1 -1
- data/test_app/config/application.rb +3 -0
- data/test_app/config/initializers/assets.rb +3 -1
- metadata +4 -9
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/filter_parameter_logging.rb +0 -4
- data/config/initializers/inflections.rb +0 -16
- data/config/initializers/migrate.rb +0 -18
- data/config/initializers/mime_types.rb +0 -6
- data/config/initializers/session_store.rb +0 -3
- data/config/initializers/wrap_parameters.rb +0 -14
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
-
# inflect.singular /^(ox)en/i, '\1'
|
9
|
-
# inflect.irregular 'person', 'people'
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym 'RESTful'
|
16
|
-
# end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
# poor mans migration.
|
3
|
-
# Trying to keep the schema clean until version 1
|
4
|
-
|
5
|
-
if ActiveRecord::Base.connection.table_exists? :orders
|
6
|
-
#order paid_amount
|
7
|
-
# order all times to datetime
|
8
|
-
#product position
|
9
|
-
unless Order.columns_hash["note"]
|
10
|
-
ActiveRecord::Base.connection.add_column :orders, :note, :string , :default => ""
|
11
|
-
end
|
12
|
-
end
|
13
|
-
if ActiveRecord::Base.connection.table_exists? :purchases
|
14
|
-
#purchase should have email
|
15
|
-
Purchase.where(:name => nil).each do |p|
|
16
|
-
p.update_attribute(:name , "Sisäänosto #{I18n.l(p.created_at.to_date)}")
|
17
|
-
end
|
18
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
-
# is enabled by default.
|
5
|
-
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
-
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
-
end
|
10
|
-
|
11
|
-
# To enable root element in JSON for ActiveRecord objects.
|
12
|
-
# ActiveSupport.on_load(:active_record) do
|
13
|
-
# self.include_root_in_json = true
|
14
|
-
# end
|