Skip to content

Commit

Permalink
Add Calendar model
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Aug 25, 2024
1 parent 7263d23 commit 1cd0989
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gem/apps/calendar.ru
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ require 'active_record'
OUTPUT = Rails.env.showcase? ? IO::NULL : $stdout

# Rails config
class Calendar < Rails::Application # :nodoc:
class PagyCalendar < Rails::Application # :nodoc:
config.root = __dir__
config.session_store :cookie_store, key: 'cookie_store_key'
Rails.application.credentials.secret_key_base = 'absolute_secret'
Expand Down Expand Up @@ -81,6 +81,9 @@ end
class Event < ActiveRecord::Base
end

class Calendar < ActiveRecord::Base
end

# Helpers
module EventsHelper
include Pagy::Frontend
Expand Down Expand Up @@ -742,4 +745,4 @@ TIMES.each_line(chomp: true).with_index do |time, i|
end
Event.insert_all(events)

run Calendar
run PagyCalendar

0 comments on commit 1cd0989

Please sign in to comment.