lib/generators/superuser/superuser_generator.rb
# NOTE: the order of the following methods is important!
the order of the following methods is important!
the order of the following methods is important!
def generate_css_file
        if !File.exist?("app/assets/stylesheets/superuser/application.scss")
            copy_file "superuser_base.scss", "app/assets/stylesheets/superuser/application.scss"
          end
    end
def generate_css_file if ! File . exist? ( "app/assets/stylesheets/superuser/application.scss" ) copy_file "superuser_base.scss" , "app/assets/stylesheets/superuser/application.scss" end end
NOTE: the order of the following methods is important!
NOTE : the order of the following methods is important!