enju_leaf 1.2.0.beta.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 323e1718fbfe215b6e3473541166aa1fe9adfe31
4
- data.tar.gz: d8e67acfa7d6d4eb53be1d4211cbebc28029f092
3
+ metadata.gz: 2f83700ef711038293203542028022c577307dec
4
+ data.tar.gz: a2e6b379a71beabfdb3eadc05dd136f5442cc8ae
5
5
  SHA512:
6
- metadata.gz: 1d8cf51951d1f2a4d4f58f6f900feafddbe9726e6edf49498c9bf925a84c46948a20bbc3410d78a51eb677a2971b31c4edd7713c13b4abc71f7cd5c31a03c9b1
7
- data.tar.gz: 5afe72e2dd00d7c6cbc1e6c90b79add9ab6aed2535d3378314bee7055d1cd8295377a550bf7a20ed9139245c9178127aa09beff78b4148beed9b02995f3ff9cc
6
+ metadata.gz: ccecaa3ceff64249beff8f3a87d2bc347b8966837fa90169cea3438337a27299ff1e414d3614e50c95e9dbaf6c57cccdf5216438385d5ec6e334ffbc1a5d9f3c
7
+ data.tar.gz: 52490ddbda05e67e9be69e7614107622a445581800aad9b812afdb501f8273c2bdab2cb71362a2d4220a9f79f387ffe1a71c12573ccdf7fae04abe89f985ad7f
@@ -79,10 +79,10 @@ module EnjuLeaf
79
79
  end
80
80
 
81
81
  # HTMLのtitleを表示します。
82
- def title(controller_name)
82
+ def title(controller_name, model_name = controller_name.singularize)
83
83
  string = ''
84
84
  unless ['page', 'routing_error', 'my_accounts'].include?(controller_name)
85
- string << t("activerecord.models.#{controller_name.singularize}") + ' - '
85
+ string << t("activerecord.models.#{model_name}") + ' - '
86
86
  end
87
87
  if controller_name == 'routing_error'
88
88
  string << t("page.routing_error") + ' - '
@@ -1,3 +1,3 @@
1
1
  module EnjuLeaf
2
- VERSION = "1.2.0.beta.4"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToImportRequestTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :import_request_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :import_request_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToAgentImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :agent_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :agent_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class AddPictureWidthToPictureFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :picture_files, :picture_width, :integer
4
+ add_column :picture_files, :picture_height, :integer
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ class AddAttachmentAttachmentToCarrierTypes < ActiveRecord::Migration
2
+ def self.up
3
+ change_table :carrier_types do |t|
4
+ t.attachment :attachment
5
+ end
6
+ end
7
+
8
+ def self.down
9
+ remove_attachment :carrier_types, :attachment
10
+ end
11
+ end