]> cat aescling's git repositories - mastodon.git/commitdiff
Fixed typos
authorkibigo! <marrus-sh@users.noreply.github.com>
Mon, 4 Dec 2017 06:30:45 +0000 (22:30 -0800)
committerkibigo! <marrus-sh@users.noreply.github.com>
Mon, 4 Dec 2017 06:30:45 +0000 (22:30 -0800)
app/controllers/auth/registrations_controller.rb
app/lib/themes.rb

index cc7a69ab07ecf9bf25b0fad67753d875e755603b..42e852c0493474f109e7352c28cc915e831ee4c4 100644 (file)
@@ -5,7 +5,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
 
   before_action :check_enabled_registrations, only: [:new, :create]
   before_action :configure_sign_up_params, only: [:create]
-  before_action :set_path
+  before_action :set_pack
   before_action :set_sessions, only: [:edit, :update]
   before_action :set_instance_presenter, only: [:new, :create, :update]
 
index 0819e2c908769a1152aebc261ecc0d06b44c7efd..f1796d0e36749433335e1523bf3e9c4689ac2f7e 100644 (file)
@@ -32,7 +32,7 @@ class Themes
           Dir.glob(File.join(path, '*.{css,scss}')) do |sheet|
             pack.push(File.basename(sheet, File.extname(sheet)))
           end
-        elsif ext.match?(/^\.s?css$/i)
+        elsif ext.match(/^\.s?css$/i)
           skin = File.basename(path, ext)
           pack = ['common']
         end