lalala 4.0.0.dev.349 → 4.0.0.dev.350

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: 4d5eccfb6ba59a7e2b37202787566bf88aa2a0cf
4
- data.tar.gz: ba7d8acaf3a176fe432c1c29dc9bac3afad3470d
3
+ metadata.gz: 483f33450f209f0544fb54ccb718a7fc76379c6a
4
+ data.tar.gz: 4a330aa11699a31a516a4b5e2f90fd3272a4bbfd
5
5
  SHA512:
6
- metadata.gz: 34eab6e8d3bcb3a9cde5753e243de6313c37f2d27f6c12e32a93adfea9783db64485ea470d72f9281f22fdd6a5181c35809dd1b018ae1a5195ef61e80c8a274d
7
- data.tar.gz: 2cba029a02b40fe253206aff313de504e63df3c30b98fdfbc3cd7da12f63b230e247ae257d5ae5c9f5fdeb0cfb13a5655c57b9559208b3bfd3955632562af062
6
+ metadata.gz: a24724a3d30ea5c42010f08663e1b828ec398b5f917c3cd556912226b1656d2d5e2a24fdff1540f8db3b21ee654d5b3bde911f2da280aa181090298715f4b3a9
7
+ data.tar.gz: 1a37d429e7442f533b543a46af88d2e4cda961bff3c93981e838acc29dedb086af4013958b63f19e0e0be5cd4eb406ecc83fdc238514e462e3bcd64d436c21f1
@@ -1,11 +1,14 @@
1
1
  if defined?(ActiveAdmin) and defined?(ApplicationPage)
2
2
  ActiveAdmin.register ApplicationPage, :as => 'Page' do
3
-
4
3
  menu priority: 20, html_options: { class: 'icon-page' }
5
4
 
6
5
  config.filters = false
7
6
  config.paginate = false
7
+ config.clear_action_items!
8
8
 
9
+ #
10
+ # Index
11
+ #
9
12
  index as: :tree_table, paginator: false, download_links: false do
10
13
  selectable_column
11
14
 
@@ -44,6 +47,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
44
47
 
45
48
  end
46
49
 
50
+
51
+ #
52
+ # Form
53
+ #
47
54
  form do |f|
48
55
  h = "".html_safe
49
56
  if f.object.new_record?
@@ -54,6 +61,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
54
61
  h
55
62
  end
56
63
 
64
+
65
+ #
66
+ # Order action
67
+ #
57
68
  collection_action :order, :method => :put do
58
69
  unless Array === params[:ordered_ids]
59
70
  render status: 422
@@ -68,6 +79,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
68
79
  render json: { status: "OK" }, status: 200
69
80
  end
70
81
 
82
+
83
+ #
84
+ # Controller
85
+ #
71
86
  controller do
72
87
 
73
88
  def new
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "349"
3
+ BUILD = "350"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev.349
4
+ version: 4.0.0.dev.350
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke