Sha256: 7389029df6f4d84195ff92dd5fdf3b24f612a90bd39e702cf97aa8b3945440ee

Contents?: true

Size: 267 Bytes

Versions: 29

Compression:

Stored size: 267 Bytes

Contents

module Concerns
  # Determines whether a participant can access a lesson
  module Accessibility
    def accessible?
      available_for_learning_on <= Date.today
    end

    def available_for_learning_on
      membership.start_date + start_day - 1
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
think_feel_do_engine-3.19.6 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.5 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.4 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.3 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.2 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.1 app/models/concerns/accessibility.rb
think_feel_do_engine-3.19.0 app/models/concerns/accessibility.rb
think_feel_do_engine-3.18.0 app/models/concerns/accessibility.rb
think_feel_do_engine-3.17.2 app/models/concerns/accessibility.rb
think_feel_do_engine-3.17.1 app/models/concerns/accessibility.rb
think_feel_do_engine-3.17.0 app/models/concerns/accessibility.rb
think_feel_do_engine-3.16.3 app/models/concerns/accessibility.rb
think_feel_do_engine-3.16.2 app/models/concerns/accessibility.rb
think_feel_do_engine-3.16.1 app/models/concerns/accessibility.rb
think_feel_do_engine-3.15.7 app/models/concerns/accessibility.rb
think_feel_do_engine-3.16.0 app/models/concerns/accessibility.rb
think_feel_do_engine-3.15.6 app/models/concerns/accessibility.rb
think_feel_do_engine-3.15.5 app/models/concerns/accessibility.rb
think_feel_do_engine-3.15.4 app/models/concerns/accessibility.rb
think_feel_do_engine-3.15.3 app/models/concerns/accessibility.rb