thecore_settings 2.0.3 → 2.0.4

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
  SHA256:
3
- metadata.gz: 0cafff1b57fc1c4e124155d2351b255000e725b8f4845bdb5f724c0d34b301dc
4
- data.tar.gz: 02a9b30787bf39f2963e8c9279c76adb3004cb041403f06b238db0fa37d9be93
3
+ metadata.gz: 9fffe406c1ac27ced75d6a8afe8d21dc28e1df165cc33b947aa10d17b86d3dde
4
+ data.tar.gz: b1fe75965bbaebc4e3687fdf6c469ad32a2432ce1b7123d093e2908d3c4374ba
5
5
  SHA512:
6
- metadata.gz: efefe22648f01bc00055b0d3d5df9ffeed3380b7813ee4b9dc74f0d9f584f0dfe763611421727a8dd885d419049638f64ba1a67c0b3a99ccddde70155af4cecb
7
- data.tar.gz: fa490f1c30a2abc69ef0da417b3d87c9f2736cc2f9b7fe3e731af90c64083fd5c0bbc9e2904dd482dc539d6728aaabc013db7bf5208c2cff84fdd8f88e1e1fe3
6
+ metadata.gz: 8b539c1e5ab12dec985d19a01a5e692dce5847d90865f2f4236542b50e65d2684b77c95a9232c987784dc2cb058dd91ae13a8413910dc14997a0cc249235f516
7
+ data.tar.gz: 72b7fd28f0d8967b0a7bd9f5524e3b60fb5e7ca1f8649c8c571f8529bd69f5d89a804d4b6a52797e47ddef5305a7868d3e1fa88b1b859d1fa03f3c06b3f01b73
@@ -1,4 +1,4 @@
1
- module RailsAdminSettings
1
+ module ThecoreSettings
2
2
  module RailsAdminExtensionConfig
3
3
  def self.included(base)
4
4
  # IMPORTANT: To extend rails admin section in model, directly, instead of using concerns, I can
@@ -19,4 +19,4 @@ module RailsAdminSettings
19
19
  end
20
20
 
21
21
  # include the extension (loving mixins)
22
- RailsAdminSettings::Setting.send(:include, RailsAdminSettings::RailsAdminExtensionConfig)
22
+ ThecoreSettings::Setting.send(:include, ThecoreSettings::RailsAdminExtensionConfig)
@@ -5,15 +5,15 @@ module TheCoreSettingsAbilitiesConcern
5
5
  included do
6
6
  def thecore_settings_abilities user
7
7
  # Rails.logger.debug "Cannot Create"
8
- cannot :create, RailsAdminSettings::Setting
8
+ cannot :create, ThecoreSettings::Setting
9
9
  # Rails.logger.debug "Cannot Delete"
10
- cannot :destroy, RailsAdminSettings::Setting
11
- cannot :show, RailsAdminSettings::Setting
10
+ cannot :destroy, ThecoreSettings::Setting
11
+ cannot :show, ThecoreSettings::Setting
12
12
 
13
- # cannot :manage, [RailsAdminSettings::Setting]
14
- # cannot :dashboard, [RailsAdminSettings::Setting]
13
+ # cannot :manage, [ThecoreSettings::Setting]
14
+ # cannot :dashboard, [ThecoreSettings::Setting]
15
15
  # # Pay attention to this errorTypeError (can't convert Class to Array (Class#to_ary gives String)):
16
- # can [:index, :update], [RailsAdminSettings::Setting] if user && user.admin?
16
+ # can [:index, :update], [ThecoreSettings::Setting] if user && user.admin?
17
17
  end
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
- class CreateRailsAdminSettings < ActiveRecord::Migration[5.0]
1
+ class CreateThecoreSettings < ActiveRecord::Migration[5.0]
2
2
  def change
3
3
  create_table :thecore_settings do |t|
4
4
  t.boolean :enabled, default: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -353,7 +353,7 @@ files:
353
353
  - app/helpers/.keep
354
354
  - app/mailers/.keep
355
355
  - app/models/.keep
356
- - app/models/rails_admin_settings/setting.rb
356
+ - app/models/thecore_settings/setting.rb
357
357
  - app/views/.keep
358
358
  - app/views/rails_admin/main/_setting_value.html.haml
359
359
  - assets/javascripts/rails_admin/custom/thecore_settings.rb
@@ -370,9 +370,9 @@ files:
370
370
  - db/migrate/20161227101956_add_app_name.rb
371
371
  - gemfiles/mongoid-6.0.gemfile
372
372
  - gemfiles/mongoid-6.3.gemfile
373
- - lib/generators/rails_admin_settings/migration_generator.rb
374
- - lib/generators/rails_admin_settings/templates/db/migrate/20161227101954_create_thecore_settings.rb
375
- - lib/generators/rails_admin_settings/templates/migration.rb
373
+ - lib/generators/thecore_settings/migration_generator.rb
374
+ - lib/generators/thecore_settings/templates/db/migrate/20161227101954_create_thecore_settings.rb
375
+ - lib/generators/thecore_settings/templates/migration.rb
376
376
  - lib/tasks/thecore_settings_tasks.rake
377
377
  - lib/thecore_settings.rb
378
378
  - lib/thecore_settings/determine_mime_type.rb