{"action":"created","issue":{"url":"https://api.github.com/repos/benignware/schedulable/issues/4","labels_url":"https://api.github.com/repos/benignware/schedulable/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/benignware/schedulable/issues/4/comments","events_url":"https://api.github.com/repos/benignware/schedulable/issues/4/events","html_url":"https://github.com/benignware/schedulable/issues/4","id":61939267,"number":4,"title":"undefined method `rule'?","user":{"login":"scottdc","id":13413,"avatar_url":"https://avatars.githubusercontent.com/u/13413?v=3","gravatar_id":"","url":"https://api.github.com/users/scottdc","html_url":"https://github.com/scottdc","followers_url":"https://api.github.com/users/scottdc/followers","following_url":"https://api.github.com/users/scottdc/following{/other_user}","gists_url":"https://api.github.com/users/scottdc/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdc/subscriptions","organizations_url":"https://api.github.com/users/scottdc/orgs","repos_url":"https://api.github.com/users/scottdc/repos","events_url":"https://api.github.com/users/scottdc/events{/privacy}","received_events_url":"https://api.github.com/users/scottdc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T01:38:43Z","updated_at":"2015-03-16T10:20:53Z","closed_at":"2015-03-16T04:17:07Z","body":"Created a very basic app using schedulable and ice cube but ran into a strange bug.\r\nDouble checked my models for any typos or issues and didn't find any problems. Checked from the console that all my associations are correct. I'm using the generated input for simple form, unmodded. Pretty much stumped at this point but likely I am missing something obvious.\r\n\r\nundefined method `rule' for #<IceCube::Schedule:0x000001071e3c70>\r\n\r\nStack trace:\r\nschedulable (0.0.6) lib/schedulable/schedule_support.rb:15:in `method_missing'\r\nschedulable (0.0.6) lib/schedulable/schedule_support.rb:37:in `init_schedule'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:424:in `block in make_lambda'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:221:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:221:in `block in halting_and_conditional'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\r\nactiverecord (4.1.1) lib/active_record/core.rb:201:in `initialize'\r\nactiverecord (4.1.1) lib/active_record/inheritance.rb:30:in `new'\r\nactiverecord (4.1.1) lib/active_record/inheritance.rb:30:in `new'\r\nactiverecord (4.1.1) lib/active_record/reflection.rb:207:in `build_association'\r\nactiverecord (4.1.1) lib/active_record/associations/association.rb:247:in `build_record'\r\nactiverecord (4.1.1) lib/active_record/associations/singular_association.rb:29:in `build'\r\nactiverecord (4.1.1) lib/active_record/associations/builder/singular_association.rb:18:in `build_schedule'\r\napp/inputs/schedule_input.rb:14:in `input'\r\nsimple_form (3.1.0) lib/simple_form/components/label_input.rb:26:in `call'\r\nsimple_form (3.1.0) lib/simple_form/components/label_input.rb:26:in `deprecated_component'\r\nsimple_form (3.1.0) lib/simple_form/components/label_input.rb:14:in `label_input'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/leaf.rb:19:in `call'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/leaf.rb:19:in `render'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/many.rb:28:in `block in render'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/many.rb:26:in `each'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/many.rb:26:in `render'\r\nsimple_form (3.1.0) lib/simple_form/wrappers/root.rb:15:in `render'\r\nsimple_form (3.1.0) lib/simple_form/form_builder.rb:115:in `input'\r\napp/views/jobs/_form.html.erb:10:in `block in _app_views_jobs__form_html_erb___3237886738178548600_2159188600'\r\nactionview (4.1.1) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'\r\nactionview (4.1.1) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer'\r\nactionview (4.1.1) lib/action_view/helpers/capture_helper.rb:38:in `capture'\r\nactionview (4.1.1) lib/action_view/helpers/form_helper.rb:434:in `form_for'\r\nsimple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for'\r\nsimple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc'\r\nsimple_form (3.1.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for'\r\napp/views/jobs/_form.html.erb:1:in `_app_views_jobs__form_html_erb___3237886738178548600_2159188600'\r\nactionview (4.1.1) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument'\r\nactionview (4.1.1) lib/action_view/template.rb:339:in `instrument'\r\nactionview (4.1.1) lib/action_view/template.rb:143:in `render'\r\nactionview (4.1.1) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'\r\nactionview (4.1.1) lib/action_view/renderer/partial_renderer.rb:279:in `block in render'\r\nactionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'\r\nactionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\nactionview (4.1.1) lib/action_view/renderer/partial_renderer.rb:278:in `render'\r\nactionview (4.1.1) lib/action_view/renderer/renderer.rb:47:in `render_partial'\r\nactionview (4.1.1) lib/action_view/helpers/rendering_helper.rb:35:in `render'\r\napp/views/jobs/new.html.erb:5:in `_app_views_jobs_new_html_erb___4550522753965688097_2158955920'\r\nactionview (4.1.1) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument'\r\nactionview (4.1.1) lib/action_view/template.rb:339:in `instrument'\r\nactionview (4.1.1) lib/action_view/template.rb:143:in `render'\r\nactionview (4.1.1) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'\r\nactionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'\r\nactionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\nactionview (4.1.1) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'\r\nactionview (4.1.1) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'\r\nactionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template'\r\nactionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render'\r\nactionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template'\r\nactionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render'\r\nactionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template'\r\nactionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'\r\nactionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body'\r\nactionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body'\r\nactionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body'\r\nactionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render'\r\nactionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'\r\nactivesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'\r\n/Users/scott/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'\r\nactivesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'\r\nactiverecord (4.1.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render'\r\nactionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render'\r\nactionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action'\r\nactionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action'\r\nactionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\nactionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\r\nactionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\nactionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument'\r\nactionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\nactionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\nactiverecord (4.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process'\r\nactionview (4.1.1) lib/action_view/rendering.rb:30:in `process'\r\nactionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch'\r\nactionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\nactionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action'\r\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'\r\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call'\r\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each'\r\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call'\r\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `call'\r\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\r\nrack (1.5.2) lib/rack/conditionalget.rb:25:in `call'\r\nrack (1.5.2) lib/rack/head.rb:11:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call'\r\nrack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'\r\nrack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\nactiverecord (4.1.1) lib/active_record/query_cache.rb:36:in `call'\r\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\r\nactiverecord (4.1.1) lib/active_record/migration.rb:380:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\nactivesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\nrailties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'\r\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'\r\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\nrack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\r\nrack (1.5.2) lib/rack/runtime.rb:17:in `call'\r\nactivesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'\r\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\r\nactionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'\r\nrack (1.5.2) lib/rack/sendfile.rb:112:in `call'\r\nrailties (4.1.1) lib/rails/engine.rb:514:in `call'\r\nrailties (4.1.1) lib/rails/application.rb:144:in `call'\r\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\r\nrack (1.5.2) lib/rack/content_length.rb:14:in `call'\r\nrack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\r\n/Users/scott/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'\r\n/Users/scott/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'\r\n/Users/scott/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'\r\n\r\njob.rb:\r\nclass Job < ActiveRecord::Base\r\n  acts_as_schedulable occurrences: :job_occurrences\r\nend\r\n\r\nschedule.rb:\r\nclass Schedule < ActiveRecord::Base\r\n  \r\n  include Schedulable::ScheduleSupport\r\n  \r\n  serialize :days\r\n  serialize :day_of_week, Hash\r\n  \r\n  belongs_to :schedulable, polymorphic: true\r\n  \r\n  after_initialize :init_schedule\r\n  after_save :init_schedule\r\nend"},"comment":{"url":"https://api.github.com/repos/benignware/schedulable/issues/comments/81560454","html_url":"https://github.com/benignware/schedulable/issues/4#issuecomment-81560454","issue_url":"https://api.github.com/repos/benignware/schedulable/issues/4","id":81560454,"user":{"login":"rexblack","id":424581,"avatar_url":"https://avatars.githubusercontent.com/u/424581?v=3","gravatar_id":"","url":"https://api.github.com/users/rexblack","html_url":"https://github.com/rexblack","followers_url":"https://api.github.com/users/rexblack/followers","following_url":"https://api.github.com/users/rexblack/following{/other_user}","gists_url":"https://api.github.com/users/rexblack/gists{/gist_id}","starred_url":"https://api.github.com/users/rexblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexblack/subscriptions","organizations_url":"https://api.github.com/users/rexblack/orgs","repos_url":"https://api.github.com/users/rexblack/repos","events_url":"https://api.github.com/users/rexblack/events{/privacy}","received_events_url":"https://api.github.com/users/rexblack/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T10:20:53Z","updated_at":"2015-03-16T10:20:53Z","body":"Thanks for reporting. I will try to set up a sample app as soon as possible. I'll keep an eye on this issue then..."}}